aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz N <przepompownia@users.noreply.github.com>2023-10-22 03:21:51 +0200
committerGitHub <noreply@github.com>2023-10-22 10:21:51 +0900
commitce2a9fb89a8ceef78310a67343d79c8f3d3c27ce (patch)
tree171f6ba375eff0536e588ff704a38f25c19f0874
parentUpdate README (diff)
downloadnvim-treesitter-ce2a9fb89a8ceef78310a67343d79c8f3d3c27ce.tar
nvim-treesitter-ce2a9fb89a8ceef78310a67343d79c8f3d3c27ce.tar.gz
nvim-treesitter-ce2a9fb89a8ceef78310a67343d79c8f3d3c27ce.tar.bz2
nvim-treesitter-ce2a9fb89a8ceef78310a67343d79c8f3d3c27ce.tar.lz
nvim-treesitter-ce2a9fb89a8ceef78310a67343d79c8f3d3c27ce.tar.xz
nvim-treesitter-ce2a9fb89a8ceef78310a67343d79c8f3d3c27ce.tar.zst
nvim-treesitter-ce2a9fb89a8ceef78310a67343d79c8f3d3c27ce.zip
fix(phpdoc): disable spell checking of attribute names (#5015)
-rw-r--r--queries/phpdoc/highlights.scm4
1 files changed, 3 insertions, 1 deletions
diff --git a/queries/phpdoc/highlights.scm b/queries/phpdoc/highlights.scm
index 5cb3dba06..08ff9e1cb 100644
--- a/queries/phpdoc/highlights.scm
+++ b/queries/phpdoc/highlights.scm
@@ -1,4 +1,4 @@
-(tag_name) @attribute
+(tag_name) @attribute @nospell
(tag
(tag_name) @_tag (#eq? @_tag "@param")
(variable_name) @parameter
@@ -24,6 +24,8 @@
(named_type)
(optional_type)
] @type)
+(type_list) @nospell
+(variable_name) @nospell
(tag
(description (text) @text))
(tag