aboutsummaryrefslogtreecommitdiff
path: root/build/lexer.cxx
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 /build/lexer.cxx
parent257ad3c2c5e633d2fd3f2228021ac3ae8d6d07cb (diff)
Parse directory scopes
Diffstat (limited to 'build/lexer.cxx')
-rw-r--r--build/lexer.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/build/lexer.cxx b/build/lexer.cxx
index 9e3521a..a1aa375 100644
--- a/build/lexer.cxx
+++ b/build/lexer.cxx
@@ -19,7 +19,7 @@ namespace build
uint64_t ln (c.line ()), cn (c.column ());
if (is_eos (c))
- return token (ln, cn);
+ return token (token_type::eos, ln, cn);
switch (c)
{
@@ -27,19 +27,19 @@ namespace build
//
case '\n':
{
- return token (token_punctuation::newline, ln, cn);
+ return token (token_type::newline, ln, cn);
}
case ':':
{
- return token (token_punctuation::colon, ln, cn);
+ return token (token_type::colon, ln, cn);
}
case '{':
{
- return token (token_punctuation::lcbrace, ln, cn);
+ return token (token_type::lcbrace, ln, cn);
}
case '}':
{
- return token (token_punctuation::rcbrace, ln, cn);
+ return token (token_type::rcbrace, ln, cn);
}
}