diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-10-25 07:46:08 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-11-04 09:26:35 +0200 |
commit | e3ff4880273746c34d07e641110abaf38a1f1fca (patch) | |
tree | 2d8243a21c4b6f1415583f81b7fbc3095354a764 /unit-tests/test/script/lexer/driver.cxx | |
parent | 52682b19b9e9055e99bb5f1988ae7764fa0e7158 (diff) |
Add tests for first_token, second_token testscript lexer modes
Diffstat (limited to 'unit-tests/test/script/lexer/driver.cxx')
-rw-r--r-- | unit-tests/test/script/lexer/driver.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unit-tests/test/script/lexer/driver.cxx b/unit-tests/test/script/lexer/driver.cxx index bda21e4..c5beebb 100644 --- a/unit-tests/test/script/lexer/driver.cxx +++ b/unit-tests/test/script/lexer/driver.cxx @@ -30,8 +30,8 @@ namespace build2 string s (argv[1]); if (s == "script-line") m = lexer_mode::script_line; - else if (s == "first-token") m = lexer_mode::second_token; - else if (s == "second-token") m = lexer_mode::first_token; + else if (s == "first-token") m = lexer_mode::first_token; + else if (s == "second-token") m = lexer_mode::second_token; else if (s == "variable-line") m = lexer_mode::variable_line; else if (s == "command-line") m = lexer_mode::command_line; else if (s == "here-line") m = lexer_mode::here_line; |