diff options
| author | Kai Moschcau <mail@kmoschcau.de> | 2024-05-01 10:43:21 +0200 |
|---|---|---|
| committer | Christian Clason <c.clason@uni-graz.at> | 2024-05-01 15:01:48 +0200 |
| commit | ead283734bf0310f6ae2f05243ce0367de9e14b0 (patch) | |
| tree | 81d9f19c64bee506b36801089aeaca7c88e6f6a4 /queries | |
| parent | feat(perl): deactivate spelling in shebangs (diff) | |
| download | nvim-treesitter-ead283734bf0310f6ae2f05243ce0367de9e14b0.tar nvim-treesitter-ead283734bf0310f6ae2f05243ce0367de9e14b0.tar.gz nvim-treesitter-ead283734bf0310f6ae2f05243ce0367de9e14b0.tar.bz2 nvim-treesitter-ead283734bf0310f6ae2f05243ce0367de9e14b0.tar.lz nvim-treesitter-ead283734bf0310f6ae2f05243ce0367de9e14b0.tar.xz nvim-treesitter-ead283734bf0310f6ae2f05243ce0367de9e14b0.tar.zst nvim-treesitter-ead283734bf0310f6ae2f05243ce0367de9e14b0.zip | |
feat(latex, query, tablegen, thrift): disable spelling in shebangs
Diffstat (limited to 'queries')
| -rw-r--r-- | queries/latex/highlights.scm | 4 | ||||
| -rw-r--r-- | queries/query/highlights.scm | 6 | ||||
| -rw-r--r-- | queries/tablegen/highlights.scm | 2 | ||||
| -rw-r--r-- | queries/thrift/highlights.scm | 2 |
4 files changed, 7 insertions, 7 deletions
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 "#!.*")) |
