diff options
-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")) |