Skip to content
Browse files

[fix] syntax,js-like: arbitrary ident should not include backquotes

  • Loading branch information...
1 parent f969279 commit e7136a0b219b15373acf2a6b62a595f90b747b1a @OpaOnWindowsNow OpaOnWindowsNow committed Dec 13, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 opalang/js_syntax/opa_lexer.trx
View
4 opalang/js_syntax/opa_lexer.trx
@@ -205,7 +205,7 @@ assign_nosp <- '=' ![=] $
/* value identifier */
ml_identifier <- spacing ml_identifier_nosp {{ __2 }}
-ml_identifier_nosp <- not_a_keyword field_identifier_nosp $_
+ml_identifier_nosp <- not_a_keyword field_identifier_nosp {{ __2 }}
field_identifier <- spacing field_identifier_nosp {{ __2 }}
field_identifier_nosp <- ml_identifier_first_letter ml_following_letter* $_
@@ -216,7 +216,7 @@ type_identifier <- spacing type_identifier_nosp {{ __2 }}
type_identifier_nosp <- not_a_keyword ml_identifier_first_letter (ml_following_letter $/ '.' $)* $_
/ arbitrary_identifier_nosp
-arbitrary_identifier <- spacing arbitrary_identifier_nosp
+arbitrary_identifier <- spacing arbitrary_identifier_nosp {{ __2 }}
arbitrary_identifier_nosp <- bquote_nosp ((![`\n] .)* $_) bquote_nosp {{ __2 }}
ml_identifier_first_letter <- [a-zA-Z_]

0 comments on commit e7136a0

Please sign in to comment.
Something went wrong with that request. Please try again.