Mercurial > vim
view runtime/syntax/zathurarc.vim @ 36258:4e190eb5f0ad draft
runtime(vim): Update base-syntax file, improve class, enum and interface highlighting
Commit: https://github.com/vim/vim/commit/818c641b6fac73b574a2b760213f515cee9a3c8e
Author: Doug Kearns <dougkearns@gmail.com>
Date: Sun Oct 6 17:00:48 2024 +0200
runtime(vim): Update base-syntax file, improve class, enum and interface highlighting
- Enable folding of class, enum and interface declarations.
- Highlight constructor names with the Function highlight group, like
other special methods.
- Mark function definitions using special method names as errors.
- Highlight :type arguments.
fixes: #14393#issuecomment-2042796198.
closes: #13810
Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 06 Oct 2024 17:15:04 +0200 |
parents | 9cd56ca1b758 |
children |
line wrap: on
line source
" Vim syntax file " Language: Zathurarc " Maintainer: Wu, Zhenyu <wuzhenyu@ustc.edu> " Documentation: https://pwmt.org/projects/zathura/documentation/ " Upstream: https://github.com/Freed-Wu/zathurarc.vim " Latest Revision: 2024-09-16 if exists('b:current_syntax') finish endif let b:current_syntax = 'zathurarc' syntax case match syntax iskeyword @,48-57,_,192-255,- syntax region zathurarcComment start="\%([ \t]*\&\([^\\]\zs\|^\)\)#" end="$" syntax match zathurarcBracket /[<>]/ contained syntax match zathurarcNotation `<[A-Z][a-z0-9]\+>` contains=zathurarcBracket syntax match zathurarcNumber `\<[0-9.]\>` syntax region zathurarcString start=`"` skip=`\\"` end=`"` syntax region zathurarcString start=`'` skip=`\\'` end=`'` syntax keyword zathurarcMode normal fullscreen presentation index syntax keyword zathurarcBoolean true false syntax keyword zathurarcCommand include map set unmap 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 highlight default link zathurarcComment Comment highlight default link zathurarcNumber Number highlight default link zathurarcMode Macro highlight default link zathurarcString String highlight default link zathurarcBoolean Boolean " same as vim highlight default link zathurarcBracket Delimiter highlight default link zathurarcNotation Special highlight default link zathurarcCommand Statement highlight default link zathurarcOption PreProc " ex: nowrap