File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
src/Language/JavaScript/Parser Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,8 @@ testLexer = describe "Lexer:" $ do
37
37
testLex " '\" '" `shouldBe` " [StringToken '\" ']"
38
38
testLex " \"\\\"\" " `shouldBe` " [StringToken \"\\\\\"\" ]"
39
39
testLex " '\\\' '" `shouldBe` " [StringToken '\\\\ '']"
40
+ testLex " '\" '" `shouldBe` " [StringToken '\" ']"
41
+ testLex " \"\\ '\" " `shouldBe` " [StringToken \"\\ '\" ]"
40
42
41
43
it " assignment" $ do
42
44
testLex " x=1" `shouldBe` " [IdentifierToken 'x',SimpleAssignToken,DecimalToken 1]"
Original file line number Diff line number Diff line change @@ -65,8 +65,8 @@ $not_eol_char = ~$eol_char -- anything but an end of line character
65
65
$string_chars = [^ \n \r ' \" \\ ]
66
66
67
67
-- See e.g. http://es5.github.io/x7.html#x7.8.4 (Table 4)
68
- @sq_escapes = \\ ( \\ | ' | b | f | n | r | t | v | 0 | x )
69
- @dq_escapes = \\ ( \\ | \" | b | f | n | r | t | v | 0 | x )
68
+ @sq_escapes = \\ ( \\ | ' | \" | b | f | n | r | t | v | 0 | x )
69
+ @dq_escapes = \\ ( \\ | ' | \" | b | f | n | r | t | v | 0 | x )
70
70
71
71
@unicode_escape = \\ u $hex_digit{4}
72
72
You can’t perform that action at this time.
0 commit comments