X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/561ac4181ec3ad1e1e207e840f70d5017ba9a1ed..0347fadf3028c2a703a8d259850732e2642a5e78:/Cycript.y.in diff --git a/Cycript.y.in b/Cycript.y.in index 37b9203..a77265f 100644 --- a/Cycript.y.in +++ b/Cycript.y.in @@ -696,7 +696,7 @@ BooleanLiteral PrimaryExpression : PrimaryExpressionNoWC { $$ = $1; } @begin E4X - | LexSetRegExp PrimaryExpressionWC { $$ = $1; } + | LexSetRegExp PrimaryExpressionWC { $$ = $2; } @end ; @@ -1748,7 +1748,7 @@ PropertySelector_ ; PropertySelector - : Word { $$ = $1; } + : Identifier { $$ = $1; } | WildcardIdentifier { $$ = $1; } ; /* }}} */ @@ -1774,16 +1774,12 @@ XMLInitialiser ; XMLElement - : "<" XMLTagContent_ "/>" LexPop - | "<" XMLTagContent_ ">" LexSetXMLContent XMLElementContentOpt "" LexPop - ; - -XMLTagContent_ - : LexPushXMLTag XMLTagContent XMLWhitespaceOpt + : "<" XMLTagContent "/>" LexPop + | "<" XMLTagContent ">" LexSetXMLContent XMLElementContentOpt "" LexPop ; XMLTagContent - : XMLTagName XMLAttributesOpt + : LexPushXMLTag XMLTagName XMLAttributes ; XMLExpression @@ -1795,14 +1791,14 @@ XMLTagName | XMLName ; -XMLAttributes - : XMLWhitespace XMLExpression - | XMLAttributeOpt XMLAttributes +XMLAttributes_ + : XMLAttributes_ XMLAttribute + | ; -XMLAttributesOpt - : XMLAttributes - | +XMLAttributes + : XMLAttributes_ XMLWhitespace XMLExpression XMLWhitespaceOpt + | XMLAttributes_ XMLWhitespaceOpt ; XMLAttributeValue_ @@ -1814,11 +1810,6 @@ XMLAttribute : XMLWhitespace XMLName XMLWhitespaceOpt "=" XMLWhitespaceOpt XMLAttributeValue_ ; -XMLAttributeOpt - : XMLAttribute - | - ; - XMLElementContent : XMLExpression XMLElementContentOpt | XMLMarkup XMLElementContentOpt @@ -1838,7 +1829,7 @@ XMLListInitialiser /* }}} */ /* 11.2 Left-Hand-Side Expressions {{{ */ PropertyIdentifier_ - : Word { $$ = $1; } + : Identifier { $$ = $1; } | PropertyIdentifier { $$ = $1; } ;