mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-04-02 01:45:13 +08:00
Add highlighting tests for empty variables
This commit is contained in:
parent
9bce3f4741
commit
1a9e3761ae
@ -4088,6 +4088,9 @@ static void test_highlighting() {
|
||||
highlight_tests.push_back({{L"/bin/c", highlight_spec_command, ns},
|
||||
{L"$VARIABLE_IN_COMMAND2", highlight_spec_operator, ns}});
|
||||
|
||||
highlight_tests.push_back({{L"$EMPTY_VARIABLE", highlight_spec_error}});
|
||||
highlight_tests.push_back({{L"\"$EMPTY_VARIABLE\"", highlight_spec_error}});
|
||||
|
||||
for (const highlight_component_list_t &components : highlight_tests) {
|
||||
// Generate the text.
|
||||
wcstring text;
|
||||
|
Loading…
x
Reference in New Issue
Block a user