LibJS: Lex single quote strings, escaped chars and unterminated strings

This commit is contained in:
Stephan Unverwerth 2020-03-14 11:45:25 +01:00 committed by Andreas Kling
parent d439013903
commit c0e6234219
Notes: sideshowbarker 2024-07-19 08:19:00 +09:00
5 changed files with 33 additions and 4 deletions

View file

@ -0,0 +1,7 @@
var d = "Double quoted string";
var s = 'Single quoted string';
var e = "Escaped characters \n \" \t \\"
var u = "Unterminated string
this is not possible in js"
var u2 = 'This is neither