Wu, Zhenyu | 72d81a6 | 2024-04-08 22:19:06 +0200 | [diff] [blame] | 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 |
Wu, Zhenyu | f21d28a | 2024-09-17 19:50:52 +0200 | [diff] [blame] | 6 | " Latest Revision: 2024-09-16 |
Wu, Zhenyu | 72d81a6 | 2024-04-08 22:19:06 +0200 | [diff] [blame] | 7 | |
| 8 | if exists('b:current_syntax') |
| 9 | finish |
| 10 | endif |
| 11 | let b:current_syntax = 'zathurarc' |
| 12 | |
| 13 | syntax case match |
| 14 | syntax iskeyword @,48-57,_,192-255,- |
| 15 | |
| 16 | syntax region zathurarcComment start="\%([ \t]*\&\([^\\]\zs\|^\)\)#" end="$" |
| 17 | syntax match zathurarcBracket /[<>]/ contained |
| 18 | syntax match zathurarcNotation `<[A-Z][a-z0-9]\+>` contains=zathurarcBracket |
| 19 | syntax match zathurarcNumber `\<[0-9.]\>` |
| 20 | syntax region zathurarcString start=`"` skip=`\\"` end=`"` |
| 21 | syntax region zathurarcString start=`'` skip=`\\'` end=`'` |
| 22 | syntax keyword zathurarcMode normal fullscreen presentation index |
| 23 | syntax keyword zathurarcBoolean true false |
| 24 | syntax keyword zathurarcCommand include map set unmap |
Wu, Zhenyu | f21d28a | 2024-09-17 19:50:52 +0200 | [diff] [blame] | 25 | syntax keyword zathurarcOption abort-clear-search adjust-open advance-pages-per-row completion-bg completion-fg completion-group-bg completion-group-fg completion-highlight-bg completion-highlight-fg continuous-hist-save database dbus-raise-window dbus-service default-bg default-fg double-click-follow exec-command filemonitor first-page-column font guioptions highlight-active-color highlight-color highlight-fg highlight-transparency incremental-search index-active-bg index-active-fg index-bg index-fg inputbar-bg inputbar-fg link-hadjust link-zoom n-completion-items notification-bg notification-error-bg notification-error-fg notification-fg notification-warning-bg notification-warning-fg page-cache-size page-padding page-right-to-left page-thumbnail-size pages-per-row recolor recolor-darkcolor recolor-keephue recolor-lightcolor recolor-reverse-video render-loading render-loading-bg render-loading-fg sandbox scroll-full-overlap scroll-hstep scroll-page-aware scroll-step scroll-wrap search-hadjust selection-clipboard selection-notification show-directories show-hidden show-recent statusbar-basename statusbar-bg statusbar-fg statusbar-h-padding statusbar-home-tilde statusbar-page-percent statusbar-v-padding synctex synctex-editor-command vertical-center window-height window-icon window-icon-document window-title-basename window-title-home-tilde window-title-page window-width zoom-center zoom-max zoom-min zoom-step |
Wu, Zhenyu | 72d81a6 | 2024-04-08 22:19:06 +0200 | [diff] [blame] | 26 | |
| 27 | highlight default link zathurarcComment Comment |
| 28 | highlight default link zathurarcNumber Number |
| 29 | highlight default link zathurarcMode Macro |
| 30 | highlight default link zathurarcString String |
| 31 | highlight default link zathurarcBoolean Boolean |
| 32 | " same as vim |
| 33 | highlight default link zathurarcBracket Delimiter |
| 34 | highlight default link zathurarcNotation Special |
| 35 | highlight default link zathurarcCommand Statement |
| 36 | highlight default link zathurarcOption PreProc |
| 37 | " ex: nowrap |