mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 10:50:06 -04:00
Improve check-queries (#1253)
- Add checks for injections. - Allow queries that start with [A-Z] for highlights only. - Don't stop on the first error, finish checking all queries.
This commit is contained in:
parent
972f70956a
commit
c1f61d4ca1
5 changed files with 36 additions and 15 deletions
|
|
@ -1,4 +1,5 @@
|
|||
((triple_string) @markdown
|
||||
(#offset! @markdown 0 3 0 -3))
|
||||
; TODO: re-add when markdown is added.
|
||||
; ((triple_string) @markdown
|
||||
; (#offset! @markdown 0 3 0 -3))
|
||||
|
||||
(comment) @comment
|
||||
|
|
|
|||
|
|
@ -40,10 +40,11 @@
|
|||
body: (body (content) @latex))
|
||||
(#eq? @_type "math"))
|
||||
|
||||
((directive
|
||||
name: (type) @_type
|
||||
body: (body (content) @csv))
|
||||
(#eq? @_type "csv-table"))
|
||||
; TODO: re-add when a parser for csv is added.
|
||||
; ((directive
|
||||
; name: (type) @_type
|
||||
; body: (body (content) @csv))
|
||||
; (#eq? @_type "csv-table"))
|
||||
|
||||
;; Special roles - prefix
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue