Do not recognize \uFEFF as whitespace in the metagrammar since it does not work with Rhino.

redux
David Majda 15 years ago
parent bddb65ab9b
commit 69906e9730

@ -1310,7 +1310,8 @@ with (PEG.Grammar) {
new Literal("\v"),
new Literal("\f"),
new Literal("\xA0"),
new Literal("\uFEFF"),
// Should be here, but causes infinite loop in Rhino:
// new Literal("\uFEFF"),
new Literal("\u1680"),
new Literal("\u180E"),
new Literal("\u2000"),

@ -910,7 +910,6 @@ with (PEG.Grammar) {
grammarParserParses('start:\f"abcd"', simpleGrammar);
grammarParserParses('start: "abcd"', simpleGrammar);
grammarParserParses('start:\xA0"abcd"', simpleGrammar);
grammarParserParses('start:\uFEFF"abcd"', simpleGrammar);
grammarParserParses('start:\u1680"abcd"', simpleGrammar);
grammarParserParses('start:\u180E"abcd"', simpleGrammar);
grammarParserParses('start:\u2000"abcd"', simpleGrammar);

Loading…
Cancel
Save