feat(parsers): add jjdescription (#8625)

This commit is contained in:
Riley Bruins
2026-04-03 01:43:28 -07:00
committed by GitHub
parent 539abf6da5
commit 81295eb0c5
4 changed files with 57 additions and 0 deletions

View File

@@ -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

View File

@@ -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',

View 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

View 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"))