robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

zeertzjqvim-patch:203210e: runtime(zathurarc): sync options with latest zathura master (#40879)69e1321731

master
4.1 KiB70 linesraw
1" Vim syntax file
2" Language:             Zathurarc
3" Maintainer:           Wu, Zhenyu <wuzhenyu@ustc.edu>
4" Documentation:        https://pwmt.org/projects/zathura/documentation/
5" Upstream:             https://github.com/Freed-Wu/zathurarc.vim
6" Latest Revision:      2024-09-16
7" 2026 Apr 04 by Vim project: add page-v-padding and page-h-padding
8" 2026 Jul 20 by Vim project: syn options with latest zathura upstream repo
9
10if exists('b:current_syntax')
11  finish
12endif
13let b:current_syntax = 'zathurarc'
14
15syntax case match
16syntax iskeyword @,48-57,_,192-255,-
17
18syntax region zathurarcComment start="\%([ \t]*\&\([^\\]\zs\|^\)\)#" end="$"
19syntax match zathurarcBracket /[<>]/ contained
20syntax match zathurarcNotation `<[A-Z][a-z0-9]\+>` contains=zathurarcBracket
21syntax match zathurarcNumber `\<[0-9.]\>`
22syntax region zathurarcString start=`"` skip=`\\"` end=`"`
23syntax region zathurarcString start=`'` skip=`\\'` end=`'`
24syntax keyword zathurarcMode normal fullscreen presentation index
25syntax keyword zathurarcBoolean true false
26syntax keyword zathurarcCommand include map set unmap
27syntax keyword zathurarcOption abort-clear-search adjust-open advance-pages-per-row
28syntax keyword zathurarcOption completion-bg completion-fg completion-group-bg
29syntax keyword zathurarcOption completion-group-fg completion-highlight-bg
30syntax keyword zathurarcOption completion-highlight-fg continuous-hist-save database
31syntax keyword zathurarcOption dbus-raise-window dbus-service default-bg default-fg
32syntax keyword zathurarcOption double-click-follow exec-command filemonitor
33syntax keyword zathurarcOption first-page-column font guioptions highlight-active-color
34syntax keyword zathurarcOption highlight-color highlighter-modifier highlight-fg
35syntax keyword zathurarcOption incremental-search index-active-bg index-active-fg index-bg
36syntax keyword zathurarcOption index-fg inputbar-bg inputbar-fg jumplist-size link-hadjust
37syntax keyword zathurarcOption link-zoom n-completion-items nohlsearch notification-bg
38syntax keyword zathurarcOption notification-error-bg notification-error-fg notification-fg
39syntax keyword zathurarcOption notification-warning-bg notification-warning-fg
40syntax keyword zathurarcOption open-first-page open-link-confirm page-cache-size
41syntax keyword zathurarcOption page-h-padding page-mode page-right-to-left pages-per-row
42syntax keyword zathurarcOption page-thumbnail-size page-v-padding recolor
43syntax keyword zathurarcOption recolor-adjust-lightness recolor-darkcolor recolor-keephue
44syntax keyword zathurarcOption recolor-lightcolor recolor-reverse-video render-loading
45syntax keyword zathurarcOption render-loading-bg render-loading-fg scrollbar-bg
46syntax keyword zathurarcOption scrollbar-fg scroll-full-overlap scroll-hstep
47syntax keyword zathurarcOption scroll-page-aware scroll-step scroll-wrap search-hadjust
48syntax keyword zathurarcOption selection-clipboard selection-keep-highlight
49syntax keyword zathurarcOption selection-notification show-directories show-hidden
50syntax keyword zathurarcOption show-recent show-signature-information signature-error-color
51syntax keyword zathurarcOption signature-success-color signature-warning-color
52syntax keyword zathurarcOption single-page-mode statusbar-basename statusbar-bg
53syntax keyword zathurarcOption statusbar-fg statusbar-home-tilde statusbar-h-padding
54syntax keyword zathurarcOption statusbar-page-percent statusbar-v-padding synctex
55syntax keyword zathurarcOption synctex-edit-modifier synctex-editor-command vertical-center
56syntax keyword zathurarcOption window-height window-title-basename window-title-home-tilde
57syntax keyword zathurarcOption window-title-page window-width word-separator zoom-center
58syntax keyword zathurarcOption zoom-max zoom-min zoom-step
59
60highlight default link zathurarcComment Comment
61highlight default link zathurarcNumber Number
62highlight default link zathurarcMode Macro
63highlight default link zathurarcString String
64highlight default link zathurarcBoolean Boolean
65" same as vim
66highlight default link zathurarcBracket Delimiter
67highlight default link zathurarcNotation Special
68highlight default link zathurarcCommand Statement
69highlight default link zathurarcOption PreProc
70" ex: nowrap