|
|
|
@ -401,16 +401,4 @@ test("parses singleQuotedCharacter", function() {
|
|
|
|
|
parserParses("start = '\\\n'", literalGrammar("\n"));
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
/* Canonical simpleSingleQuotedCharacter is "a". */
|
|
|
|
|
test("parses simpleSingleQuotedCharacter", function() {
|
|
|
|
|
parserParses("start = 'a'", literalGrammar("a"));
|
|
|
|
|
parserParses("start = '\"'", literalGrammar("\""));
|
|
|
|
|
parserDoesNotParse("start = '''");
|
|
|
|
|
parserDoesNotParse("start = '\\'");
|
|
|
|
|
parserDoesNotParse("start = '\n'");
|
|
|
|
|
parserDoesNotParse("start = '\r'");
|
|
|
|
|
parserDoesNotParse("start = '\u2028'");
|
|
|
|
|
parserDoesNotParse("start = '\u2029'");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
})();
|
|
|
|
|