summaryrefslogtreecommitdiff
path: root/Base
diff options
context:
space:
mode:
authorStephan Unverwerth <s.unverwerth@gmx.de>2020-03-14 11:45:25 +0100
committerAndreas Kling <kling@serenityos.org>2020-03-14 12:13:53 +0100
commitc0e623421972606adf41616d7be82e42d820658c (patch)
tree28368c7ade04d19b1643ce6f0690a9b093d31760 /Base
parentd439013903a1e9ecfc8c8716bd88dbceb8314a6a (diff)
downloadserenity-c0e623421972606adf41616d7be82e42d820658c.zip
LibJS: Lex single quote strings, escaped chars and unterminated strings
Diffstat (limited to 'Base')
-rw-r--r--Base/home/anon/js/strings.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/Base/home/anon/js/strings.js b/Base/home/anon/js/strings.js
new file mode 100644
index 0000000000..d707bf090d
--- /dev/null
+++ b/Base/home/anon/js/strings.js
@@ -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