You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The lexer does not throw a syntax error when there are line terminators, like \n, in string literal.
To Reproduce
"HelloWorld";
Expected behavior
Should throw a syntax error
Additional context
There are some broken tests that exploit this bug and should be fixed when addressing this bug.
In the current implementation, the template literal share the character lexing function with the string literal. We should consider separating them since their grammar and semantic are subtly different.
The text was updated successfully, but these errors were encountered:
Describe the bug
The lexer does not throw a syntax error when there are line terminators, like
\n
, in string literal.To Reproduce
Expected behavior
Should throw a syntax error
Additional context
There are some broken tests that exploit this bug and should be fixed when addressing this bug.
In the current implementation, the template literal share the character lexing function with the string literal. We should consider separating them since their grammar and semantic are subtly different.
The text was updated successfully, but these errors were encountered: