mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-13 17:00: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
1
SUPPORTED_LANGUAGES.md
generated
1
SUPPORTED_LANGUAGES.md
generated
|
|
@ -226,6 +226,7 @@ jsx (queries only)[^jsx] | unstable | `HFIJ ` | | @steelsojka
|
||||||
[purescript](https://github.com/postsolar/tree-sitter-purescript) | unstable | `H JL` | | @postsolar
|
[purescript](https://github.com/postsolar/tree-sitter-purescript) | unstable | `H JL` | | @postsolar
|
||||||
[pymanifest](https://github.com/tree-sitter-grammars/tree-sitter-pymanifest) | unstable | `H J ` | | @ObserverOfTime
|
[pymanifest](https://github.com/tree-sitter-grammars/tree-sitter-pymanifest) | unstable | `H J ` | | @ObserverOfTime
|
||||||
[python](https://github.com/tree-sitter/tree-sitter-python) | unstable | `HFIJL` | | @stsewd, @theHamsta
|
[python](https://github.com/tree-sitter/tree-sitter-python) | unstable | `HFIJL` | | @stsewd, @theHamsta
|
||||||
|
[qf](https://github.com/OXY2DEV/tree-sitter-qf) | stable | `H J ` | | @OXY2DEV
|
||||||
[ql](https://github.com/tree-sitter/tree-sitter-ql) | unstable | `HFIJL` | | @pwntester
|
[ql](https://github.com/tree-sitter/tree-sitter-ql) | unstable | `HFIJL` | | @pwntester
|
||||||
[qmldir](https://github.com/tree-sitter-grammars/tree-sitter-qmldir) | unstable | `H J ` | | @amaanq
|
[qmldir](https://github.com/tree-sitter-grammars/tree-sitter-qmldir) | unstable | `H J ` | | @amaanq
|
||||||
[qmljs](https://github.com/yuja/tree-sitter-qmljs) | unstable | `HF J ` | | @Decodetalkers
|
[qmljs](https://github.com/yuja/tree-sitter-qmljs) | unstable | `HF J ` | | @Decodetalkers
|
||||||
|
|
|
||||||
|
|
@ -1763,6 +1763,14 @@ return {
|
||||||
maintainers = { '@stsewd', '@theHamsta' },
|
maintainers = { '@stsewd', '@theHamsta' },
|
||||||
tier = 2,
|
tier = 2,
|
||||||
},
|
},
|
||||||
|
qf = {
|
||||||
|
install_info = {
|
||||||
|
revision = 'v1.0.0',
|
||||||
|
url = 'https://github.com/OXY2DEV/tree-sitter-qf'
|
||||||
|
},
|
||||||
|
maintainers = { '@OXY2DEV' },
|
||||||
|
tier = 1
|
||||||
|
},
|
||||||
ql = {
|
ql = {
|
||||||
install_info = {
|
install_info = {
|
||||||
revision = '1fd627a4e8bff8c24c11987474bd33112bead857',
|
revision = '1fd627a4e8bff8c24c11987474bd33112bead857',
|
||||||
|
|
|
||||||
26
runtime/queries/qf/highlights.scm
Normal file
26
runtime/queries/qf/highlights.scm
Normal file
|
|
@ -0,0 +1,26 @@
|
||||||
|
"|" @punctuation.delimiter
|
||||||
|
|
||||||
|
" col " @keyword
|
||||||
|
|
||||||
|
[
|
||||||
|
(row)
|
||||||
|
(col)
|
||||||
|
] @number
|
||||||
|
|
||||||
|
(filename) @string.special.path
|
||||||
|
|
||||||
|
((code_block) @markup.raw.block
|
||||||
|
(#set! priority 90))
|
||||||
|
|
||||||
|
(code_block
|
||||||
|
(language_delimiter) @markup.raw.block
|
||||||
|
(#set! conceal ""))
|
||||||
|
|
||||||
|
((item_type) @comment.error
|
||||||
|
(#eq? @comment.error "error"))
|
||||||
|
|
||||||
|
((item_type) @comment.warning
|
||||||
|
(#eq? @comment.warning "warning"))
|
||||||
|
|
||||||
|
((item_type) @comment.note
|
||||||
|
(#eq? @comment.note "note"))
|
||||||
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