mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 11:06:54 -04:00
fix: use proper ; inherits syntax in queries (#8226)
Some queries don't add a colon after the `inherits` keyword, which nvim could handle but `ts_query_ls` could not, causing it to give incomplete diagnostics.
This commit is contained in:
parent
4a9f57971a
commit
f2204e58db
6 changed files with 11 additions and 6 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
; inherits html_tags
|
; inherits: html_tags
|
||||||
|
|
||||||
(element
|
(element
|
||||||
(start_tag
|
(start_tag
|
||||||
(tag_name) @_py_script)
|
(tag_name) @_py_script)
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
; inherits python
|
; inherits: python
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
; inherits html_tags
|
; inherits: html_tags
|
||||||
|
|
||||||
; <script lang="css">
|
; <script lang="css">
|
||||||
((style_element
|
((style_element
|
||||||
(start_tag
|
(start_tag
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,3 @@
|
||||||
; inherits wgsl
|
; inherits: wgsl
|
||||||
|
|
||||||
(preproc_ifdef) @fold
|
(preproc_ifdef) @fold
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
; inherits wgsl
|
; inherits: wgsl
|
||||||
|
|
||||||
[
|
[
|
||||||
"virtual"
|
"virtual"
|
||||||
"override"
|
"override"
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
; inherits wgsl
|
; inherits: wgsl
|
||||||
|
|
||||||
[
|
[
|
||||||
"#ifdef"
|
"#ifdef"
|
||||||
"#ifndef"
|
"#ifndef"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue