Test option highlighting in command substitutions

This commit is contained in:
Fabian Homborg 2021-10-19 17:30:45 +02:00
parent 9700a75f38
commit 43c58df873

View File

@ -5253,8 +5253,14 @@ static void test_highlighting() {
highlight_tests.push_back({
{L"echo", highlight_role_t::command},
{L"param1", highlight_role_t::param},
{L"-l", highlight_role_t::option},
{L"--", highlight_role_t::option},
{L"-l", highlight_role_t::param},
{L"(", highlight_role_t::operat},
{L"ls", highlight_role_t::command},
{L"-l", highlight_role_t::option},
{L"--", highlight_role_t::option},
{L"-l", highlight_role_t::param},
{L"param2", highlight_role_t::param},
{L")", highlight_role_t::operat},
{L"|", highlight_role_t::statement_terminator},