Add support for ! as an analog to 'not'

! and not are effectively interchangeable now.
Mark them both as operators for syntax highlighting.
This commit is contained in:
ridiculousfish
2018-03-04 16:06:32 -08:00
parent f83742d579
commit c7f16439bf
10 changed files with 70 additions and 16 deletions

View File

@@ -3961,6 +3961,11 @@ static void test_highlighting() {
{L"||", highlight_spec_operator},
{L"true", highlight_spec_command},
{L";", highlight_spec_statement_terminator},
{L"and", highlight_spec_operator},
{L"not", highlight_spec_operator},
{L"!", highlight_spec_operator},
{L"true", highlight_spec_command},
{L";", highlight_spec_statement_terminator},
{L"end", highlight_spec_command},
{NULL, -1}};