feat: add gpg config parser

This commit is contained in:
ObserverOfTime 2023-08-15 21:36:44 +03:00
parent 04cab345e9
commit f7bb866405
5 changed files with 63 additions and 0 deletions

View file

@ -0,0 +1,49 @@
(option . _ @keyword)
(option
("no-" @parameter)?
(name) @parameter)
(string (content) @string)
[
(value)
"clear"
] @string.special
(url) @text.uri
(key) @constant
[
(number)
(expire_time)
(iso_time)
] @number
(format) @character.special
"sensitive:" @type.qualifier
(filter_name) @parameter
(filter_scope) @namespace
(filter_property) @property
(filter_value) @string
[
(filter_op0)
(filter_op1)
(filter_lc)
"="
] @operator
"!" @punctuation.special
[ "\"" "'" "," ] @punctuation.delimiter
(comment) @comment @spell
(ERROR) @error

View file

@ -0,0 +1,2 @@
((comment) @injection.content
(#set! injection.language "comment"))