mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-06 21:40:03 -04:00
feat: add the muttrc parser
This commit is contained in:
parent
69e4b99f13
commit
e4a1cc6e8e
5 changed files with 74 additions and 0 deletions
53
queries/muttrc/highlights.scm
Normal file
53
queries/muttrc/highlights.scm
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
; Comments
|
||||
(comment) @comment @spell
|
||||
|
||||
; General
|
||||
(int) @number
|
||||
|
||||
(string) @string
|
||||
|
||||
[
|
||||
(map)
|
||||
(object)
|
||||
(composeobject)
|
||||
(color)
|
||||
(attribute)
|
||||
] @string.special
|
||||
|
||||
(quadoption) @boolean
|
||||
|
||||
(path) @string.special.path
|
||||
|
||||
(regex) @string.regexp
|
||||
|
||||
[
|
||||
(option)
|
||||
(command_line_option)
|
||||
] @variable.builtin
|
||||
|
||||
(command) @keyword
|
||||
|
||||
(source_directive
|
||||
(command) @keyword.import)
|
||||
|
||||
(uri) @string.special.url
|
||||
|
||||
(key_name) @constant.builtin
|
||||
|
||||
(escape) @string.escape
|
||||
|
||||
(function) @function.call
|
||||
|
||||
; Literals
|
||||
[
|
||||
"<"
|
||||
">"
|
||||
] @punctuation.bracket
|
||||
|
||||
"," @punctuation.delimiter
|
||||
|
||||
[
|
||||
"&"
|
||||
"?"
|
||||
"*"
|
||||
] @character.special
|
||||
8
queries/muttrc/injections.scm
Normal file
8
queries/muttrc/injections.scm
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
((regex) @injection.content
|
||||
(#set! injection.language "regex"))
|
||||
|
||||
((shell) @injection.content
|
||||
(#set! injection.language "bash"))
|
||||
|
||||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue