Permalink
Browse files

[fix] compiler, syntax: keywords directives must be exact

  • Loading branch information...
1 parent 278aa18 commit 8c21ea163de0c30b17469f529c09fbdbe08e2dc7 Quentin Bourgerie committed with BourgerieQuentin Feb 11, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 opalang/js_syntax/opa_parser.trx
@@ -1114,7 +1114,7 @@ declaration_directive1_typ <-
/** toplevel directive **/
declaration_directives <- (=deco(declaration_directive))*
declaration_directive <-
- / declaration_directive0_keyword:d
+ / declaration_directive0_keyword:d !Opa_lexer.ml_following_letter
{{ (d, [], []) }}
/ "@" (=exact_ident(declaration_directive0)):d !"("
{{ (d, [], []) }}
@@ -1136,7 +1136,7 @@ slicing_directive0 <-
closure_instrumentation_directive <- "public_env" {{ `public_env }}
local_binding_directive <-
- / declaration_directive0_slicing:v {{ (v, [], []) }}
+ / declaration_directive0_slicing:v !Opa_lexer.ml_following_letter {{ (v, [], []) }}
/ "@" (=exact_ident(closure_instrumentation_directive)):v !"(" {{ (v, [], []) }}
local_binding_directives <- (=deco(local_binding_directive))*:v spacing {{ v }}

0 comments on commit 8c21ea1

Please sign in to comment.