summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/data/lex/INDEX1
-rw-r--r--test/data/lex/tests2.dat29
2 files changed, 30 insertions, 0 deletions
diff --git a/test/data/lex/INDEX b/test/data/lex/INDEX
index f6008ae..a3439f2 100644
--- a/test/data/lex/INDEX
+++ b/test/data/lex/INDEX
@@ -3,3 +3,4 @@
# Test Description
tests1.dat Basic tests
+tests2.dat More complicated tests
diff --git a/test/data/lex/tests2.dat b/test/data/lex/tests2.dat
new file mode 100644
index 0000000..5548327
--- /dev/null
+++ b/test/data/lex/tests2.dat
@@ -0,0 +1,29 @@
+#data
+p[example="public class foo\
+{\
+ private int x;\
+\
+ foo(int x) {\
+ this.x = x;\
+ }\
+\
+}"] { color: red }
+#expected
+IDENT:p
+CHAR:[
+IDENT:example
+CHAR:=
+STRING:public class foo\n{\n private int x;\n\n foo(int x) {\n this.x = x;\n }\n\n}
+CHAR:]
+S
+CHAR:{
+S
+IDENT:color
+CHAR::
+S
+IDENT:red
+S
+CHAR:}
+S
+EOF
+#reset