Correctly highlight input following a tokenizer error

This commit is contained in:
ridiculousfish
2019-10-27 16:08:49 -07:00
parent afd20b8e1a
commit eeac3333df
4 changed files with 17 additions and 3 deletions

View File

@@ -4626,6 +4626,8 @@ static void test_highlighting() {
highlight_tests.push_back({
{L"false", highlight_role_t::command},
{L"|&", highlight_role_t::error},
{L"true", highlight_role_t::command},
{L"stuff", highlight_role_t::param},
});
auto &vars = parser_t::principal_parser().vars();