Skip to content

Commit

Permalink
fix a match bug in MULTILINE_COMMENT
Browse files Browse the repository at this point in the history
make it can match /*/*/
  • Loading branch information
myvyang committed May 3, 2016
1 parent b6e946b commit 42a8dff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/as3/tokenizer.lex
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ XMLSTRING ["][^"]*["]
STRING ["](\\[\x00-\xff]|[^\\"\n])*["]|['](\\[\x00-\xff]|[^\\'\n])*[']
S ([ \n\r\t\xa0]|[\xc2][\xa0])
MULTILINE_COMMENT [/][*]+([*][^/]|[^/*]|[^*][/]|[\x00-\x1f])*[*]+[/]
MULTILINE_COMMENT [/][*]+([*][^/]|[^/*]|[^*]?[/]|[\x00-\x1f])*[*]+[/]
SINGLELINE_COMMENT \/\/[^\n\r]*[\n\r]
REGEXP [/]([^/\n]|\\[/])*[/][a-zA-Z]*
%%
Expand Down

0 comments on commit 42a8dff

Please sign in to comment.