Unnamed repository; edit this file 'description' to name the repository.
queries: Remove `(ERROR)` from all highlights
We do not highlight `(ERROR)` nodes since the highlighting is quite
noisy while typing. Also see todo comments in `syntax.rs` - we could
introduce configuration in the future to prepend `(ERROR)` to a
language's highlights query.
26 files changed, 0 insertions, 58 deletions
diff --git a/runtime/queries/cpon/highlights.scm b/runtime/queries/cpon/highlights.scm index f85caf46..039284e7 100644 --- a/runtime/queries/cpon/highlights.scm +++ b/runtime/queries/cpon/highlights.scm @@ -13,7 +13,6 @@ (string) @string (escape_sequence) @constant.character.escape -(ERROR) @error "," @punctuation.delimiter [ diff --git a/runtime/queries/cylc/highlights.scm b/runtime/queries/cylc/highlights.scm index e9e1194f..d28753c4 100644 --- a/runtime/queries/cylc/highlights.scm +++ b/runtime/queries/cylc/highlights.scm @@ -1,5 +1,3 @@ -(ERROR) @markup.bold - [ (jinja2_expression) (jinja2_statement) diff --git a/runtime/queries/dart/highlights.scm b/runtime/queries/dart/highlights.scm index dab58496..c93bf394 100644 --- a/runtime/queries/dart/highlights.scm +++ b/runtime/queries/dart/highlights.scm @@ -233,7 +233,3 @@ ; when used as an identifier: ((identifier) @variable.builtin (#match? @variable.builtin "^(abstract|as|base|covariant|deferred|dynamic|export|external|factory|Function|get|implements|import|interface|library|operator|mixin|part|sealed|set|static|typedef)$")) - -; Error -(ERROR) @error - diff --git a/runtime/queries/dot/highlights.scm b/runtime/queries/dot/highlights.scm index eefb81f9..fb67cfaf 100644 --- a/runtime/queries/dot/highlights.scm +++ b/runtime/queries/dot/highlights.scm @@ -38,6 +38,3 @@ (comment) @comment (preproc) @keyword.directive - -(ERROR) @error - diff --git a/runtime/queries/fish/highlights.scm b/runtime/queries/fish/highlights.scm index b5668e7b..225d2796 100644 --- a/runtime/queries/fish/highlights.scm +++ b/runtime/queries/fish/highlights.scm @@ -153,7 +153,3 @@ ((word) @constant.builtin.boolean (#match? @constant.builtin.boolean "^(true|false)$")) - -;; Error - -(ERROR) @error diff --git a/runtime/queries/godot-resource/highlights.scm b/runtime/queries/godot-resource/highlights.scm index d8a69f65..f6bae669 100644 --- a/runtime/queries/godot-resource/highlights.scm +++ b/runtime/queries/godot-resource/highlights.scm @@ -25,5 +25,4 @@ "=" @operator -(ERROR) @error (comment) @comment diff --git a/runtime/queries/gotmpl/highlights.scm b/runtime/queries/gotmpl/highlights.scm index 5921d161..2f47f4bd 100644 --- a/runtime/queries/gotmpl/highlights.scm +++ b/runtime/queries/gotmpl/highlights.scm @@ -73,4 +73,3 @@ (nil) @constant.builtin (comment) @comment -(ERROR) @error diff --git a/runtime/queries/hcl/highlights.scm b/runtime/queries/hcl/highlights.scm index 7e6e6cf7..ffeb79a5 100644 --- a/runtime/queries/hcl/highlights.scm +++ b/runtime/queries/hcl/highlights.scm @@ -1,5 +1,3 @@ -(ERROR) @error - [ "if" "else" diff --git a/runtime/queries/json/highlights.scm b/runtime/queries/json/highlights.scm index 17bb5f75..69005074 100644 --- a/runtime/queries/json/highlights.scm +++ b/runtime/queries/json/highlights.scm @@ -10,7 +10,6 @@ (string) @string (escape_sequence) @constant.character.escape -(ERROR) @error "," @punctuation.delimiter [ diff --git a/runtime/queries/latex/highlights.scm b/runtime/queries/latex/highlights.scm index 3174d80b..34745d81 100644 --- a/runtime/queries/latex/highlights.scm +++ b/runtime/queries/latex/highlights.scm @@ -1,6 +1,4 @@ ;; General syntax -(ERROR) @error - (command_name) @function (caption command: _ @function) diff --git a/runtime/queries/lean/highlights.scm b/runtime/queries/lean/highlights.scm index 43e3a62e..648507f7 100644 --- a/runtime/queries/lean/highlights.scm +++ b/runtime/queries/lean/highlights.scm @@ -214,6 +214,3 @@ ["|" "," "." ":" ";"] @punctuation.delimiter (sorry) @error - -;; Error -(ERROR) @error diff --git a/runtime/queries/llvm-mir/highlights.scm b/runtime/queries/llvm-mir/highlights.scm index 743b9690..4f59431b 100644 --- a/runtime/queries/llvm-mir/highlights.scm +++ b/runtime/queries/llvm-mir/highlights.scm @@ -142,5 +142,3 @@ (instruction_flag) (float_keyword) ] @keyword - -(ERROR) @error diff --git a/runtime/queries/llvm/highlights.scm b/runtime/queries/llvm/highlights.scm index 4de2a165..dea5b0ab 100644 --- a/runtime/queries/llvm/highlights.scm +++ b/runtime/queries/llvm/highlights.scm @@ -156,5 +156,3 @@ "none" "zeroinitializer" ] @constant.builtin - -(ERROR) @error diff --git a/runtime/queries/lua/highlights.scm b/runtime/queries/lua/highlights.scm index 4fedcd57..2e7d2bac 100644 --- a/runtime/queries/lua/highlights.scm +++ b/runtime/queries/lua/highlights.scm @@ -219,6 +219,3 @@ ;; Property (dot_index_expression field: (identifier) @variable.other.member) - -;; Error -(ERROR) @error diff --git a/runtime/queries/mojo/highlights.scm b/runtime/queries/mojo/highlights.scm index 4ad3500d..d6de0a92 100644 --- a/runtime/queries/mojo/highlights.scm +++ b/runtime/queries/mojo/highlights.scm @@ -247,5 +247,3 @@ ((identifier) @type.builtin (#match? @type.builtin "^(BaseException|Exception|ArithmeticError|BufferError|LookupError|AssertionError|AttributeError|EOFError|FloatingPointError|GeneratorExit|ImportError|ModuleNotFoundError|IndexError|KeyError|KeyboardInterrupt|MemoryError|NameError|NotImplementedError|OSError|OverflowError|RecursionError|ReferenceError|RuntimeError|StopIteration|StopAsyncIteration|SyntaxError|IndentationError|TabError|SystemError|SystemExit|TypeError|UnboundLocalError|UnicodeError|UnicodeEncodeError|UnicodeDecodeError|UnicodeTranslateError|ValueError|ZeroDivisionError|EnvironmentError|IOError|WindowsError|BlockingIOError|ChildProcessError|ConnectionError|BrokenPipeError|ConnectionAbortedError|ConnectionRefusedError|ConnectionResetError|FileExistsError|FileNotFoundError|InterruptedError|IsADirectoryError|NotADirectoryError|PermissionError|ProcessLookupError|TimeoutError|Warning|UserWarning|DeprecationWarning|PendingDeprecationWarning|SyntaxWarning|RuntimeWarning|FutureWarning|ImportWarning|UnicodeWarning|BytesWarning|ResourceWarning)$")) - -(ERROR) @error diff --git a/runtime/queries/po/highlights.scm b/runtime/queries/po/highlights.scm index b090f129..56874427 100644 --- a/runtime/queries/po/highlights.scm +++ b/runtime/queries/po/highlights.scm @@ -11,5 +11,3 @@ (number) @constant.numeric (string) @string - -(ERROR) @error diff --git a/runtime/queries/python/highlights.scm b/runtime/queries/python/highlights.scm index 0786eba6..e9e81aae 100644 --- a/runtime/queries/python/highlights.scm +++ b/runtime/queries/python/highlights.scm @@ -229,5 +229,3 @@ (class_definition name: (identifier) @type) (class_definition superclasses: (argument_list (identifier) @type)) - -(ERROR) @error diff --git a/runtime/queries/r/highlights.scm b/runtime/queries/r/highlights.scm index 34d70bd8..29526bcf 100644 --- a/runtime/queries/r/highlights.scm +++ b/runtime/queries/r/highlights.scm @@ -122,6 +122,3 @@ (namespace_get function: (identifier) @function.method) (namespace_get_internal function: (identifier) @function.method) - -; Error -(ERROR) @error diff --git a/runtime/queries/regex/highlights.scm b/runtime/queries/regex/highlights.scm index 302cc6b3..0e81a3e7 100644 --- a/runtime/queries/regex/highlights.scm +++ b/runtime/queries/regex/highlights.scm @@ -50,4 +50,3 @@ ]) (class_character) @constant.character -(ERROR) @error diff --git a/runtime/queries/rescript/highlights.scm b/runtime/queries/rescript/highlights.scm index cfb8a351..8decebb4 100644 --- a/runtime/queries/rescript/highlights.scm +++ b/runtime/queries/rescript/highlights.scm @@ -219,8 +219,3 @@ (jsx_self_closing_element ["/" ">" "<"] @punctuation.special) (jsx_fragment [">" "<" "/"] @punctuation.special) (jsx_attribute (property_identifier) @attribute) - -; Error -;---------- - -(ERROR) @keyword.control.exception diff --git a/runtime/queries/tablegen/highlights.scm b/runtime/queries/tablegen/highlights.scm index 188fa2ef..0b7aaa20 100644 --- a/runtime/queries/tablegen/highlights.scm +++ b/runtime/queries/tablegen/highlights.scm @@ -88,5 +88,3 @@ "multiclass" "defm" ] @namespace - -(ERROR) @error diff --git a/runtime/queries/ungrammar/highlights.scm b/runtime/queries/ungrammar/highlights.scm index cffbdbfd..90514a0c 100644 --- a/runtime/queries/ungrammar/highlights.scm +++ b/runtime/queries/ungrammar/highlights.scm @@ -1,5 +1,3 @@ -(ERROR) @error - (line_comment) @comment (identifier) @variable diff --git a/runtime/queries/uxntal/highlights.scm b/runtime/queries/uxntal/highlights.scm index a6ff1852..25579bb3 100644 --- a/runtime/queries/uxntal/highlights.scm +++ b/runtime/queries/uxntal/highlights.scm @@ -11,5 +11,4 @@ (relative_pad) @constant (label) @label (sub_label) @label -(ERROR) @error ["[" "]" "{" "}"] @punctuation.bracket diff --git a/runtime/queries/verilog/highlights.scm b/runtime/queries/verilog/highlights.scm index a194ac33..de65cab0 100644 --- a/runtime/queries/verilog/highlights.scm +++ b/runtime/queries/verilog/highlights.scm @@ -307,5 +307,3 @@ "(" ")" ] @punctuation.bracket - -(ERROR) @error diff --git a/runtime/queries/yaml/highlights.scm b/runtime/queries/yaml/highlights.scm index 6d58e445..3c39cf1e 100644 --- a/runtime/queries/yaml/highlights.scm +++ b/runtime/queries/yaml/highlights.scm @@ -12,7 +12,6 @@ (alias_name) @type (tag) @type (yaml_directive) @keyword -(ERROR) @error (block_mapping_pair key: (flow_node [(double_quote_scalar) (single_quote_scalar)] @variable.other.member)) diff --git a/runtime/queries/yuck/highlights.scm b/runtime/queries/yuck/highlights.scm index 74d04fca..35eee4ea 100644 --- a/runtime/queries/yuck/highlights.scm +++ b/runtime/queries/yuck/highlights.scm @@ -1,10 +1,6 @@ (ident) @variable (index) @variable -; Errors - -(ERROR) @error - ; Comments (comment) @comment |