mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-28 20:34:07 +08:00
Re-add highlighter tests
These were removed by accident.
This commit is contained in:
parent
17c1fa9d64
commit
14f3a5f79a
|
@ -1530,12 +1530,6 @@ static void test_indents() {
|
|||
0, "\nend" //
|
||||
);
|
||||
|
||||
tests.clear();
|
||||
add_test(&tests, //
|
||||
0, "echo 'continuation line' \\", //
|
||||
1, "\ncont", //
|
||||
0, "\n" //
|
||||
);
|
||||
int test_idx = 0;
|
||||
for (const indent_test_t &test : tests) {
|
||||
// Construct the input text and expected indents.
|
||||
|
@ -5710,13 +5704,6 @@ static void test_highlighting() {
|
|||
});
|
||||
#endif
|
||||
|
||||
highlight_tests.clear();
|
||||
highlight_tests.push_back({
|
||||
{L"echo", highlight_role_t::command},
|
||||
{L"stuff", highlight_role_t::param},
|
||||
{L"# comment", highlight_role_t::comment},
|
||||
});
|
||||
|
||||
bool saved_flag = feature_test(feature_flag_t::ampersand_nobg_in_token);
|
||||
mutable_fish_features()->set(feature_flag_t::ampersand_nobg_in_token, true);
|
||||
for (const highlight_component_list_t &components : highlight_tests) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user