mirror of
https://github.com/chenasraf/nvim-treesitter.git
synced 2026-05-17 17:38:02 +00:00
feat(parsers): add jjdescription (#8625)
This commit is contained in:
1
SUPPORTED_LANGUAGES.md
generated
1
SUPPORTED_LANGUAGES.md
generated
@@ -146,6 +146,7 @@ html_tags (queries only)[^html_tags] | unstable | `H IJ ` | @TravonteD
|
||||
[javascript](https://github.com/tree-sitter/tree-sitter-javascript) | unstable | `HFIJL` | @steelsojka
|
||||
[jinja](https://github.com/cathaysia/tree-sitter-jinja)[^jinja] | unstable | `H J ` | @cathaysia
|
||||
[jinja_inline](https://github.com/cathaysia/tree-sitter-jinja)[^jinja_inline] | unstable | `H J ` | @cathaysia
|
||||
[jjdescription](https://github.com/ribru17/tree-sitter-jjdescription) | stable | `H J ` | @ribru17
|
||||
[jq](https://github.com/flurie/tree-sitter-jq) | unstable | `H JL` | @ObserverOfTime
|
||||
[jsdoc](https://github.com/tree-sitter/tree-sitter-jsdoc) | unstable | `H ` | @steelsojka
|
||||
[json](https://github.com/tree-sitter/tree-sitter-json) | unstable | `HFIJL` | @steelsojka
|
||||
|
||||
@@ -1101,6 +1101,14 @@ return {
|
||||
readme_note = 'needed for full highlighting',
|
||||
tier = 2,
|
||||
},
|
||||
jjdescription = {
|
||||
install_info = {
|
||||
revision = 'v1.0.3',
|
||||
url = 'https://github.com/ribru17/tree-sitter-jjdescription',
|
||||
},
|
||||
maintainers = { '@ribru17' },
|
||||
tier = 1,
|
||||
},
|
||||
jq = {
|
||||
install_info = {
|
||||
revision = 'c204e36d2c3c6fce1f57950b12cabcc24e5cc4d9',
|
||||
|
||||
42
runtime/queries/jjdescription/highlights.scm
Normal file
42
runtime/queries/jjdescription/highlights.scm
Normal file
@@ -0,0 +1,42 @@
|
||||
[
|
||||
(comment)
|
||||
(generated_comment)
|
||||
] @comment
|
||||
|
||||
(comment_content) @spell
|
||||
|
||||
(subject) @markup.heading
|
||||
|
||||
(type) @keyword
|
||||
|
||||
(scope) @variable.parameter
|
||||
|
||||
(change_id) @constant
|
||||
|
||||
(filepath) @string.special.path
|
||||
|
||||
((rest) @comment
|
||||
(#not-lua-match? @comment "^diff"))
|
||||
|
||||
"JJ: ignore-rest" @keyword.directive
|
||||
|
||||
[
|
||||
"("
|
||||
")"
|
||||
] @punctuation.bracket
|
||||
|
||||
":" @punctuation.delimiter
|
||||
|
||||
"!" @punctuation.special
|
||||
|
||||
[
|
||||
"A"
|
||||
"C"
|
||||
] @diff.plus
|
||||
|
||||
"D" @diff.minus
|
||||
|
||||
[
|
||||
"M"
|
||||
"R"
|
||||
] @diff.delta
|
||||
6
runtime/queries/jjdescription/injections.scm
Normal file
6
runtime/queries/jjdescription/injections.scm
Normal file
@@ -0,0 +1,6 @@
|
||||
((comment_content) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
|
||||
((rest) @injection.content
|
||||
(#lua-match? @injection.content "^diff")
|
||||
(#set! injection.language "diff"))
|
||||
Reference in New Issue
Block a user