diff options
author | Christian Clason <c.clason@uni-graz.at> | 2023-05-21 19:22:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-21 19:22:28 +0200 |
commit | edf9a897f089191f2b43985f7ebc11a0b540bb44 (patch) | |
tree | 725fd24cd1b2287c70a904f3fbc2ea5a287a0913 | |
parent | 60f69014a801891d084542cf98ba2aa0d476164a (diff) | |
download | rneovim-edf9a897f089191f2b43985f7ebc11a0b540bb44.tar.gz rneovim-edf9a897f089191f2b43985f7ebc11a0b540bb44.tar.bz2 rneovim-edf9a897f089191f2b43985f7ebc11a0b540bb44.zip |
fix(treesitter): update highlights for query (#23699)
captures for `; extends` and `; inherits`
-rw-r--r-- | runtime/queries/query/highlights.scm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/queries/query/highlights.scm b/runtime/queries/query/highlights.scm index ee31a7e7ef..f2d2ef6c7f 100644 --- a/runtime/queries/query/highlights.scm +++ b/runtime/queries/query/highlights.scm @@ -27,8 +27,8 @@ ((parameters (identifier) @number) (#match? @number "^[-+]?[0-9]+(.[0-9]+)?$")) -((program . (comment) @include) - (#match? @include "^;\ +inherits\ *:")) +((program . (comment)* . (comment) @include) + (#lua-match? @include "^;+ *inherits *:")) -((program . (comment) @preproc) - (#match? @preproc "^; +extends")) +((program . (comment)* . (comment) @preproc) + (#lua-match? @preproc "^;+ *extends")) |