mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-25 09:39:52 +08:00
Test option highlighting in command substitutions
This commit is contained in:
parent
9700a75f38
commit
43c58df873
|
@ -5253,8 +5253,14 @@ static void test_highlighting() {
|
||||||
highlight_tests.push_back({
|
highlight_tests.push_back({
|
||||||
{L"echo", highlight_role_t::command},
|
{L"echo", highlight_role_t::command},
|
||||||
{L"param1", highlight_role_t::param},
|
{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"(", highlight_role_t::operat},
|
||||||
{L"ls", highlight_role_t::command},
|
{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"param2", highlight_role_t::param},
|
||||||
{L")", highlight_role_t::operat},
|
{L")", highlight_role_t::operat},
|
||||||
{L"|", highlight_role_t::statement_terminator},
|
{L"|", highlight_role_t::statement_terminator},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user