diff options
| author | Pham Huy Hoang <hoangtun0810@gmail.com> | 2023-10-25 16:45:14 +0900 |
|---|---|---|
| committer | Christian Clason <c.clason@uni-graz.at> | 2023-10-25 18:18:50 +0200 |
| commit | 107e61afb7129d637ea6c3c68b97a22194b0bf16 (patch) | |
| tree | 3a553dae422ade40a2604812d28efab123ca9bb5 /queries/python | |
| parent | Update parsers: kotlin, wing (diff) | |
| download | nvim-treesitter-107e61afb7129d637ea6c3c68b97a22194b0bf16.tar nvim-treesitter-107e61afb7129d637ea6c3c68b97a22194b0bf16.tar.gz nvim-treesitter-107e61afb7129d637ea6c3c68b97a22194b0bf16.tar.bz2 nvim-treesitter-107e61afb7129d637ea6c3c68b97a22194b0bf16.tar.lz nvim-treesitter-107e61afb7129d637ea6c3c68b97a22194b0bf16.tar.xz nvim-treesitter-107e61afb7129d637ea6c3c68b97a22194b0bf16.tar.zst nvim-treesitter-107e61afb7129d637ea6c3c68b97a22194b0bf16.zip | |
refactor: Remove all `(ERROR) @error` captures
As discussed in PR#5421, capturing `@error` is inconsistent, requiring
deep nesting (or priority) in order to correctly have red backgrounds to
it.
Some queries has this capture, some don't. For consistency purposes,
removing all of them is more preferable.
For re-enabling error, either add `(ERROR) @error` or `(ERROR _ @error)`
to your custom queries.
Diffstat (limited to 'queries/python')
| -rw-r--r-- | queries/python/highlights.scm | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/queries/python/highlights.scm b/queries/python/highlights.scm index 04398668e..de98dccbf 100644 --- a/queries/python/highlights.scm +++ b/queries/python/highlights.scm @@ -346,6 +346,3 @@ ;; https://docs.python.org/3/library/stdtypes.html "bool" "int" "float" "complex" "list" "tuple" "range" "str" "bytes" "bytearray" "memoryview" "set" "frozenset" "dict" "type" "object")) - -;; Error -(ERROR) @error |
