From ead283734bf0310f6ae2f05243ce0367de9e14b0 Mon Sep 17 00:00:00 2001 From: Kai Moschcau Date: Wed, 1 May 2024 10:43:21 +0200 Subject: feat(latex, query, tablegen, thrift): disable spelling in shebangs --- queries/latex/highlights.scm | 4 ++-- queries/query/highlights.scm | 6 +++--- queries/tablegen/highlights.scm | 2 +- queries/thrift/highlights.scm | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) (limited to 'queries') diff --git a/queries/latex/highlights.scm b/queries/latex/highlights.scm index de652d6b5..3fa25f3f5 100644 --- a/queries/latex/highlights.scm +++ b/queries/latex/highlights.scm @@ -332,8 +332,8 @@ (comment_environment) ] @comment @spell -((line_comment) @keyword.directive +((line_comment) @keyword.directive @nospell (#lua-match? @keyword.directive "^%% !TeX")) -((line_comment) @keyword.directive +((line_comment) @keyword.directive @nospell (#lua-match? @keyword.directive "^%%&")) diff --git a/queries/query/highlights.scm b/queries/query/highlights.scm index abc7aa50a..210d03dc3 100644 --- a/queries/query/highlights.scm +++ b/queries/query/highlights.scm @@ -53,17 +53,17 @@ . (comment)* . - (comment) @keyword.import) + (comment) @keyword.import @nospell) (#lua-match? @keyword.import "^;+ *inherits *:")) ((program . (comment)* . - (comment) @keyword.directive) + (comment) @keyword.directive @nospell) (#lua-match? @keyword.directive "^;+ *extends *$")) -((comment) @keyword.directive +((comment) @keyword.directive @nospell (#lua-match? @keyword.directive "^;+%s*format%-ignore%s*$")) ((predicate diff --git a/queries/tablegen/highlights.scm b/queries/tablegen/highlights.scm index 8c3c42be6..a7b200378 100644 --- a/queries/tablegen/highlights.scm +++ b/queries/tablegen/highlights.scm @@ -155,5 +155,5 @@ (multiline_comment) ] @comment @spell -((comment) @keyword.directive +((comment) @keyword.directive @nospell (#lua-match? @keyword.directive "^.*RUN")) diff --git a/queries/thrift/highlights.scm b/queries/thrift/highlights.scm index 8955faa1f..b88106f1e 100644 --- a/queries/thrift/highlights.scm +++ b/queries/thrift/highlights.scm @@ -241,5 +241,5 @@ ((comment) @comment.documentation (#lua-match? @comment.documentation "^///$")) -((comment) @keyword.directive +((comment) @keyword.directive @nospell (#lua-match? @keyword.directive "#!.*")) -- cgit v1.2.3-70-g09d2