aboutsummaryrefslogtreecommitdiff
path: root/tests/data/lexer
diff options
context:
space:
mode:
Diffstat (limited to 'tests/data/lexer')
-rw-r--r--tests/data/lexer/0004_number.txt11
-rw-r--r--tests/data/lexer/0005_symbols.rs3
-rw-r--r--tests/data/lexer/0005_symbols.txt37
3 files changed, 45 insertions, 6 deletions
diff --git a/tests/data/lexer/0004_number.txt b/tests/data/lexer/0004_number.txt
index 94fe0302d..ede39aa99 100644
--- a/tests/data/lexer/0004_number.txt
+++ b/tests/data/lexer/0004_number.txt
@@ -38,22 +38,21 @@ WHITESPACE 1 " "
38INT_NUMBER 6 "0E1279" 38INT_NUMBER 6 "0E1279"
39WHITESPACE 1 "\n" 39WHITESPACE 1 "\n"
40INT_NUMBER 1 "0" 40INT_NUMBER 1 "0"
41ERROR 1 "." 41DOTDOT 2 ".."
42ERROR 1 "."
43INT_NUMBER 1 "2" 42INT_NUMBER 1 "2"
44WHITESPACE 1 "\n" 43WHITESPACE 1 "\n"
45INT_NUMBER 1 "0" 44INT_NUMBER 1 "0"
46ERROR 1 "." 45DOT 1 "."
47IDENT 3 "foo" 46IDENT 3 "foo"
48ERROR 1 "(" 47L_PAREN 1 "("
49ERROR 1 ")" 48R_PAREN 1 ")"
50WHITESPACE 1 "\n" 49WHITESPACE 1 "\n"
51INT_NUMBER 2 "0e" 50INT_NUMBER 2 "0e"
52ERROR 1 "+" 51ERROR 1 "+"
53INT_NUMBER 1 "1" 52INT_NUMBER 1 "1"
54WHITESPACE 1 "\n" 53WHITESPACE 1 "\n"
55INT_NUMBER 1 "0" 54INT_NUMBER 1 "0"
56ERROR 1 "." 55DOT 1 "."
57IDENT 1 "e" 56IDENT 1 "e"
58ERROR 1 "+" 57ERROR 1 "+"
59INT_NUMBER 1 "1" 58INT_NUMBER 1 "1"
diff --git a/tests/data/lexer/0005_symbols.rs b/tests/data/lexer/0005_symbols.rs
new file mode 100644
index 000000000..79747d5e1
--- /dev/null
+++ b/tests/data/lexer/0005_symbols.rs
@@ -0,0 +1,3 @@
1; , ( ) { } [ ] @ # ~ ? $
2. .. ... ..=
3: :: \ No newline at end of file
diff --git a/tests/data/lexer/0005_symbols.txt b/tests/data/lexer/0005_symbols.txt
new file mode 100644
index 000000000..c845d2dff
--- /dev/null
+++ b/tests/data/lexer/0005_symbols.txt
@@ -0,0 +1,37 @@
1SEMI 1 ";"
2WHITESPACE 1 " "
3COMMA 1 ","
4WHITESPACE 1 " "
5L_PAREN 1 "("
6WHITESPACE 1 " "
7R_PAREN 1 ")"
8WHITESPACE 1 " "
9L_CURLY 1 "{"
10WHITESPACE 1 " "
11R_CURLY 1 "}"
12WHITESPACE 1 " "
13L_BRACK 1 "["
14WHITESPACE 1 " "
15R_BRACK 1 "]"
16WHITESPACE 1 " "
17AT 1 "@"
18WHITESPACE 1 " "
19POUND 1 "#"
20WHITESPACE 1 " "
21TILDE 1 "~"
22WHITESPACE 1 " "
23QUESTION 1 "?"
24WHITESPACE 1 " "
25DOLLAR 1 "$"
26WHITESPACE 1 "\n"
27DOT 1 "."
28WHITESPACE 1 " "
29DOTDOT 2 ".."
30WHITESPACE 1 " "
31DOTDOTDOT 3 "..."
32WHITESPACE 1 " "
33DOTDOTEQ 3 "..="
34WHITESPACE 1 "\n"
35COLON 1 ":"
36WHITESPACE 1 " "
37COLONCOLON 2 "::"