From c1d227bdb7884c5f588eafb0a26f7117a6f74f1b Mon Sep 17 00:00:00 2001 From: Amaan Qureshi Date: Tue, 25 Jul 2023 00:32:40 -0400 Subject: [PATCH] docs: document negative assertions --- docs/section-4-syntax-highlighting.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/section-4-syntax-highlighting.md b/docs/section-4-syntax-highlighting.md index cedd89a6..964fb677 100644 --- a/docs/section-4-syntax-highlighting.md +++ b/docs/section-4-syntax-highlighting.md @@ -428,6 +428,9 @@ var abc = function(d) { // ^ string // ^ variable } + + baz(); + ^ !variable }; ``` @@ -438,3 +441,5 @@ From the Sublime text docs: > **Caret**: ^ this will test the following selector against the scope on the most recent non-test line. It will test it at the same column the ^ is in. Consecutive ^s will test each column against the selector. > > **Arrow**: <- this will test the following selector against the scope on the most recent non-test line. It will test it at the same column as the comment character is in. + +Note that an exclamation mark (`!`) can be used to negate a selector. For example, `!keyword` will match any scope that is not the `keyword` class.