feat: add the muttrc parser

This commit is contained in:
Wu Zhenyu 2024-02-14 10:15:10 +08:00 committed by Christian Clason
parent 69e4b99f13
commit e4a1cc6e8e
5 changed files with 74 additions and 0 deletions

View 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

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