aboutsummaryrefslogtreecommitdiff
path: root/tests/build/lexer
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2014-12-15 10:43:16 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2014-12-15 10:43:16 +0200
commit835ed5f7080a98e9ee80ac08d5585ccdbb63fe0e (patch)
tree23eda92dd9df59e698f6d4a1eb24658fb3fcf323 /tests/build/lexer
parent257ad3c2c5e633d2fd3f2228021ac3ae8d6d07cb (diff)
Parse directory scopes
Diffstat (limited to 'tests/build/lexer')
-rw-r--r--tests/build/lexer/driver.cxx15
1 files changed, 4 insertions, 11 deletions
diff --git a/tests/build/lexer/driver.cxx b/tests/build/lexer/driver.cxx
index e329b1c..739fa26 100644
--- a/tests/build/lexer/driver.cxx
+++ b/tests/build/lexer/driver.cxx
@@ -91,17 +91,10 @@ lex (const char* s)
switch (t.type ())
{
case token_type::eos: v= ""; break;
- case token_type::punctuation:
- {
- switch (t.punctuation ())
- {
- case token_punctuation::newline: v = "\n"; break;
- case token_punctuation::colon: v = ":"; break;
- case token_punctuation::lcbrace: v = "{"; break;
- case token_punctuation::rcbrace: v = "}"; break;
- }
- break;
- }
+ case token_type::newline: v = "\n"; break;
+ case token_type::colon: v = ":"; break;
+ case token_type::lcbrace: v = "{"; break;
+ case token_type::rcbrace: v = "}"; break;
case token_type::name: v = t.name ().c_str (); break;
}