summaryrefslogtreecommitdiff
path: root/test/data/lex
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2008-05-05 01:57:32 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2008-05-05 01:57:32 +0000
commit87f5e1f3d54f65c9a653c80217721453d3b8ba26 (patch)
treea62f5c01683925d07d0f43e95fec100c086aed58 /test/data/lex
parent32c8f08f624a6c0902329c7b7464ba9d535c52bd (diff)
downloadlibcss-87f5e1f3d54f65c9a653c80217721453d3b8ba26.tar.gz
libcss-87f5e1f3d54f65c9a653c80217721453d3b8ba26.tar.bz2
A more complex test, taken from the CSS3 syntax module
svn path=/trunk/libcss/; revision=4126
Diffstat (limited to 'test/data/lex')
-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