mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 11:06:54 -04:00
feat(parsers): add jjdescription (#8625)
This commit is contained in:
parent
539abf6da5
commit
81295eb0c5
4 changed files with 57 additions and 0 deletions
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"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue