aboutsummaryrefslogtreecommitdiff
path: root/tests/lexer/driver.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-09-09 10:20:52 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-09-09 10:20:52 +0200
commite3b6dc455ab5c98606e38983bd19426ae346f469 (patch)
tree62f145eac81c7c6f955ca9e63df17aa07c392c11 /tests/lexer/driver.cxx
parentccca13f8eadef31f2df873cb505ebca98501c45a (diff)
Reimplement double quote lexing to avoid "implied quote" trick
Diffstat (limited to 'tests/lexer/driver.cxx')
-rw-r--r--tests/lexer/driver.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/lexer/driver.cxx b/tests/lexer/driver.cxx
index e3543da..a3819f5 100644
--- a/tests/lexer/driver.cxx
+++ b/tests/lexer/driver.cxx
@@ -99,6 +99,7 @@ main ()
assert (lex ("f\"oo$ba\"r") == tokens ({"foo", "$", "bar", ""}));
assert (lex ("\"foo bar") == tokens ({"<lexer error>"}));
+ assert (lex ("\"foo $") == tokens ({"foo ", "$", "<lexer error>"}));
assert (lex ("\"foo $bar") == tokens ({"foo ", "$", "<lexer error>"}));
// Combinations.