diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-12-14 15:16:42 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-12-14 15:16:42 +0200 |
commit | f81a767e262309d47d4a0d521a7a2c12f0abad99 (patch) | |
tree | c25838883e12966bb2e7c5f9cc8f7e97c69921f7 /build/lexer.cxx | |
parent | b46902cc090a6f43c4be7955322ade9399a9f3d3 (diff) |
Fix bugs in keyword recognition logic
Diffstat (limited to 'build/lexer.cxx')
-rw-r--r-- | build/lexer.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/build/lexer.cxx b/build/lexer.cxx index 0835704..f6e34cb 100644 --- a/build/lexer.cxx +++ b/build/lexer.cxx @@ -351,7 +351,8 @@ namespace build bool lexer:: skip_spaces () { - bool r (false); + bool r (sep_); + sep_ = false; xchar c (peek ()); bool start (c.column == 1); @@ -407,9 +408,6 @@ namespace build get (); } - r = r || sep_; - sep_ = false; - return r; } |