From edf9a897f089191f2b43985f7ebc11a0b540bb44 Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Sun, 21 May 2023 19:22:28 +0200 Subject: fix(treesitter): update highlights for query (#23699) captures for `; extends` and `; inherits` --- runtime/queries/query/highlights.scm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'runtime') 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")) -- cgit