Add \r to the JavaScript automatic semicolon insertion routine

db4
Chris Double 2008-06-21 02:21:54 +12:00
parent 4a47346bda
commit e8f9904549
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ IN: peg.javascript.parser
#! insertion rule, but ignore it in all other places. #! insertion rule, but ignore it in all other places.
EBNF: javascript EBNF: javascript
tokenizer = default tokenizer = default
nl = "\n" nl = "\r" "\n" | "\n"
tokenizer = <foreign tokenize-javascript Tok> tokenizer = <foreign tokenize-javascript Tok>
End = !(.) End = !(.)