diff options
author | John Hodge <tpg@mutabah.net> | 2015-03-17 12:44:16 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2015-03-17 12:44:16 +0800 |
commit | 80e44173b4abef7238304fbaf1182862144b62b1 (patch) | |
tree | d468ce61ffa2c3ed5a5ceaffb909fb0798bf5161 /src/parse/lex.cpp | |
parent | 6c571b2d3f99f5e209986dc00710d3fb86caafad (diff) | |
download | mrust-80e44173b4abef7238304fbaf1182862144b62b1.tar.gz |
Clean up handling of TokenTrees, allowing empty but valid TTs
Diffstat (limited to 'src/parse/lex.cpp')
-rw-r--r-- | src/parse/lex.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parse/lex.cpp b/src/parse/lex.cpp index d469d46d..17eb4f30 100644 --- a/src/parse/lex.cpp +++ b/src/parse/lex.cpp @@ -637,7 +637,7 @@ Token TTStream::realGetToken() unsigned int& idx = m_stack.back().first; const TokenTree& tree = *m_stack.back().second; - if(idx == 0 && tree.size() == 0) { + if(idx == 0 && tree.is_token()) { idx ++; return tree.tok(); } |