mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 11:20:07 -04:00
fix(parsers): Updated qf query files
- Adds highlighting for new node(s). - Removes non-standard injection rule.
This commit is contained in:
parent
57657a3507
commit
3ff8adb2bb
2 changed files with 24 additions and 19 deletions
|
|
@ -1,20 +1,25 @@
|
||||||
"|" @punctuation.delimiter
|
|
||||||
|
|
||||||
"col" @keyword
|
|
||||||
|
|
||||||
[
|
[
|
||||||
(row)
|
"|"
|
||||||
(col)
|
"-"
|
||||||
] @number
|
] @punctuation.delimiter
|
||||||
|
|
||||||
(filename) @string.special.path
|
(filename) @string.special.path
|
||||||
|
|
||||||
((code_block) @markup.raw.block
|
(row
|
||||||
(#set! priority 90))
|
[
|
||||||
|
(value)
|
||||||
|
(from)
|
||||||
|
(to)
|
||||||
|
] @number)
|
||||||
|
|
||||||
(code_block
|
"col" @keyword
|
||||||
(language_delimiter) @markup.raw.block
|
|
||||||
(#set! conceal ""))
|
(col
|
||||||
|
[
|
||||||
|
(value)
|
||||||
|
(from)
|
||||||
|
(to)
|
||||||
|
] @number)
|
||||||
|
|
||||||
((item_type) @comment.error
|
((item_type) @comment.error
|
||||||
(#eq? @comment.error "error"))
|
(#eq? @comment.error "error"))
|
||||||
|
|
@ -24,3 +29,10 @@
|
||||||
|
|
||||||
((item_type) @comment.note
|
((item_type) @comment.note
|
||||||
(#eq? @comment.note "note"))
|
(#eq? @comment.note "note"))
|
||||||
|
|
||||||
|
((code_block) @markup.raw.block
|
||||||
|
(#set! priority 90))
|
||||||
|
|
||||||
|
(code_block
|
||||||
|
(language_delimiter) @markup.raw.block
|
||||||
|
(#set! conceal ""))
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,3 @@
|
||||||
; Specified language.
|
|
||||||
; filename.lua | 10 col 5 | >!lua!< local value = 10;
|
|
||||||
(code_block
|
|
||||||
(language_delimiter) @injection.language
|
|
||||||
(content) @injection.content
|
|
||||||
(#offset! @injection.language 0 2 0 -2))
|
|
||||||
|
|
||||||
; Automatic language(slightly inaccurate).
|
; Automatic language(slightly inaccurate).
|
||||||
; filename.lua | 10 col 5 | local value = 10;
|
; filename.lua | 10 col 5 | local value = 10;
|
||||||
(quickfix_item
|
(quickfix_item
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue