Add \r to the JavaScript automatic semicolon insertion routine
parent
4a47346bda
commit
e8f9904549
|
@ -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 = !(.)
|
||||||
|
|
Loading…
Reference in New Issue