diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-11-04 08:46:41 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-11-04 09:26:22 +0200 |
commit | 2cdeda47d3315829cf7d5ed46a6f8de187ec9bfb (patch) | |
tree | 923ce65814d47bf6ba4219e8d93d4c002c7b6690 /build2/test/script/parser.cxx | |
parent | 4b1f902b33d0826ccb2f6d5a1ceb8db7bdd2defe (diff) |
Change token type 'name' to more general 'word' (testscript)
Diffstat (limited to 'build2/test/script/parser.cxx')
-rw-r--r-- | build2/test/script/parser.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build2/test/script/parser.cxx b/build2/test/script/parser.cxx index 01dd010..8f910c0 100644 --- a/build2/test/script/parser.cxx +++ b/build2/test/script/parser.cxx @@ -441,7 +441,7 @@ namespace build2 f = false; } - if (tt == type::name) + if (tt == type::word) { w = move (t.value); f = true; @@ -581,7 +581,7 @@ namespace build2 { // Check if this is the end marker. // - if (tt == type::name && + if (tt == type::word && !t.quoted && t.value == em && peek () == type::newline) |