mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-21 12:50:09 -04:00
feat(parsers): Add qf(quickfix0
This commit is contained in:
parent
c1dfc39285
commit
9b5d24111e
4 changed files with 50 additions and 0 deletions
15
runtime/queries/qf/injections.scm
Normal file
15
runtime/queries/qf/injections.scm
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
; 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).
|
||||
; filename.lua | 10 col 5 | local value = 10;
|
||||
(quickfix_item
|
||||
(filename) @injection.filename
|
||||
(range)
|
||||
(code_block
|
||||
.
|
||||
(content) @injection.content .))
|
||||
Loading…
Add table
Add a link
Reference in a new issue