From 43c58df87383958b82423e298440e2a3fad42088 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Tue, 19 Oct 2021 17:30:45 +0200 Subject: [PATCH] Test option highlighting in command substitutions --- src/fish_tests.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/fish_tests.cpp b/src/fish_tests.cpp index 35ce00f1b..0bee7ab45 100644 --- a/src/fish_tests.cpp +++ b/src/fish_tests.cpp @@ -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},