feat: add the zathurarc parser (#5948)

This commit is contained in:
wzy 2024-01-22 01:42:30 +08:00 committed by GitHub
parent e0420e73c9
commit 94bd4bcc5b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 57 additions and 0 deletions

View file

@ -0,0 +1,36 @@
; General
(path) @string.special.path
(option) @variable.builtin
(command) @keyword
(include_directive
(command) @keyword.import)
(mode_name) @type.builtin
(key) @constant
(function) @function.call
(argument) @variable.parameter
; Comments
(comment) @comment @spell
; Literals
(int) @number
(float) @number.float
(string) @string
(bool) @boolean
[
"<"
">"
"["
"]"
] @punctuation.bracket

View file

@ -0,0 +1,9 @@
(set_directive
(option) @_option
(string) @injection.content
(#eq? @_option "synctex-editor-command")
(#offset! @injection.content 0 1 0 -1)
(#set! injection.language "bash"))
((comment) @injection.content
(#set! injection.language "comment"))