diff options
| author | Pierrick Guillaume <pierguill@gmail.com> | 2022-02-16 23:25:46 +0100 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2022-02-19 18:26:23 +0100 |
| commit | af71c25edce0861589a51c630525bd0b06ba6a41 (patch) | |
| tree | ba64d21a72b7e987550fd4714b5cf5d1511639fc | |
| parent | highlights(php): highlight traits names as type (diff) | |
| download | nvim-treesitter-af71c25edce0861589a51c630525bd0b06ba6a41.tar nvim-treesitter-af71c25edce0861589a51c630525bd0b06ba6a41.tar.gz nvim-treesitter-af71c25edce0861589a51c630525bd0b06ba6a41.tar.bz2 nvim-treesitter-af71c25edce0861589a51c630525bd0b06ba6a41.tar.lz nvim-treesitter-af71c25edce0861589a51c630525bd0b06ba6a41.tar.xz nvim-treesitter-af71c25edce0861589a51c630525bd0b06ba6a41.tar.zst nvim-treesitter-af71c25edce0861589a51c630525bd0b06ba6a41.zip | |
fix(vim): fix highlight for pattern
Allow pattern to not contain pattern_multi node to be highlighted
| -rw-r--r-- | queries/vim/highlights.scm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/queries/vim/highlights.scm b/queries/vim/highlights.scm index a5667a0b6..64120e14a 100644 --- a/queries/vim/highlights.scm +++ b/queries/vim/highlights.scm @@ -142,8 +142,8 @@ (integer_literal) @number (float_literal) @float (comment) @comment -(pattern - (pattern_multi) @string.regex) @string.special +(pattern) @string.special +(pattern_multi) @string.regex (filename) @string ((scoped_identifier (scope) @_scope . (identifier) @boolean) |
