aboutsummaryrefslogtreecommitdiff
path: root/build/lexer.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build/lexer.cxx')
-rw-r--r--build/lexer.cxx15
1 files changed, 14 insertions, 1 deletions
diff --git a/build/lexer.cxx b/build/lexer.cxx
index ea11680..c2f98f2 100644
--- a/build/lexer.cxx
+++ b/build/lexer.cxx
@@ -39,6 +39,17 @@ namespace build
{
return token (token_type::rcbrace, ln, cn);
}
+ case '=':
+ {
+ return token (token_type::equal, ln, cn);
+ }
+ case '+':
+ {
+ if (get () != '=')
+ fail (c) << "expected = after +";
+
+ return token (token_type::plus_equal, ln, cn);
+ }
}
// Otherwise it is a name.
@@ -121,10 +132,12 @@ namespace build
case ' ':
case '\t':
case '\n':
+ case '#':
case ':':
case '{':
case '}':
- case '#':
+ case '=':
+ case '+':
{
break;
}