Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 8c21ea163de0c30b17469f529c09fbdbe08e2dc7 1 parent 278aa18
Quentin Bourgerie authored BourgerieQuentin committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 opalang/js_syntax/opa_parser.trx
View
4 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 }}
Please sign in to comment.
Something went wrong with that request. Please try again.