diff --git a/examples/css.pegjs b/examples/css.pegjs index 0a6895d..cbe64e7 100644 --- a/examples/css.pegjs +++ b/examples/css.pegjs @@ -91,14 +91,14 @@ medium page = PAGE_SYM S* selector:pseudo_page? "{" S* - declarationsFirst:declaration? - declarationsRest:(";" S* declaration?)* + declarationsHead:declaration? + declarationsTail:(";" S* declaration?)* "}" S* { return { type: "PageRule", selector: selector, - declarations: buildList(declarationsFirst, declarationsRest, 2) + declarations: buildList(declarationsHead, declarationsTail, 2) }; } @@ -117,17 +117,17 @@ property = name:IDENT S* { return name; } ruleset - = selectorsFirst:selector - selectorsRest:("," S* selector)* + = selectorsHead:selector + selectorsTail:("," S* selector)* "{" S* - declarationsFirst:declaration? - declarationsRest:(";" S* declaration?)* + declarationsHead:declaration? + declarationsTail:(";" S* declaration?)* "}" S* { return { type: "RuleSet", - selectors: buildList(selectorsFirst, selectorsRest, 2), - declarations: buildList(declarationsFirst, declarationsRest, 2) + selectors: buildList(selectorsHead, selectorsTail, 2), + declarations: buildList(declarationsHead, declarationsTail, 2) }; }