mirror of
https://github.com/chenasraf/nvim-treesitter.git
synced 2026-05-17 17:38:02 +00: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:
@@ -1,4 +1,5 @@
|
||||
; inherits html_tags
|
||||
; inherits: html_tags
|
||||
|
||||
(element
|
||||
(start_tag
|
||||
(tag_name) @_py_script)
|
||||
|
||||
@@ -1 +1 @@
|
||||
; inherits python
|
||||
; inherits: python
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
; inherits html_tags
|
||||
; inherits: html_tags
|
||||
|
||||
; <script lang="css">
|
||||
((style_element
|
||||
(start_tag
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
; inherits wgsl
|
||||
; inherits: wgsl
|
||||
|
||||
(preproc_ifdef) @fold
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
; inherits wgsl
|
||||
; inherits: wgsl
|
||||
|
||||
[
|
||||
"virtual"
|
||||
"override"
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
; inherits wgsl
|
||||
; inherits: wgsl
|
||||
|
||||
[
|
||||
"#ifdef"
|
||||
"#ifndef"
|
||||
|
||||
Reference in New Issue
Block a user