projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lexer: Add support for macro punctuation.
[pspp]
/
tests
/
language
/
lexer
/
segment.at
diff --git
a/tests/language/lexer/segment.at
b/tests/language/lexer/segment.at
index 414318cb5a42120fe9be21ae13705b30bbc217e9..b55216cfefaf54b05a1e913c7d788b0f2a7bb580 100644
(file)
--- a/
tests/language/lexer/segment.at
+++ b/
tests/language/lexer/segment.at
@@
-107,7
+107,7
@@
start_command .
identifier x space
number 1
identifier y space
identifier x space
number 1
identifier y space
-
unexpected_char
\_
+
punct
\_
identifier z
-newline \n (later)
-
identifier z
-newline \n (later)
-
@@
-291,6
+291,7
@@
AT_KEYWORDS([segment])
AT_DATA([input], [dnl
~ & | = >= > <= < ~= <> ( ) , - + * / [[ ]] **
~&|=>=><=<~=<>(),-+*/[[]]**
AT_DATA([input], [dnl
~ & | = >= > <= < ~= <> ( ) , - + * / [[ ]] **
~&|=>=><=<~=<>(),-+*/[[]]**
+% : ; ? _ ` { } ~
])
AT_DATA([expout-base], [dnl
punct ~ space
])
AT_DATA([expout-base], [dnl
punct ~ space
@@
-335,6
+336,17
@@
punct /
punct [[
punct ]]
punct **
punct [[
punct ]]
punct **
+newline \n (later)
+
+punct % space
+punct : space
+punct ; space
+punct ? space
+punct \_ space
+punct ` space
+punct { space
+punct } space
+punct ~
-newline \n (later)
-
end
-newline \n (later)
-
end