| Server IP : 3.96.16.70 / Your IP : 216.73.216.15 Web Server : Apache System : Linux ip-172-31-26-103.ca-central-1.compute.internal 6.1.163-186.299.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Feb 24 16:35:42 UTC 2026 x86_64 User : ec2-user ( 1000) PHP Version : 8.4.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/share/vim/vim91/syntax/ |
Upload File : |
" Vim syntax file
" Language: ondir <https://github.com/alecthomas/ondir>
" Maintainer: Jon Parise <jon@indelible.org>
if exists('b:current_syntax')
finish
endif
let s:cpo_save = &cpoptions
set cpoptions&vim
syn case match
syn match ondirComment "#.*" contains=@Spell
syn keyword ondirKeyword final contained skipwhite nextgroup=ondirKeyword
syn keyword ondirKeyword enter leave contained skipwhite nextgroup=ondirPath
syn match ondirPath "[^:]\+" contained display
syn match ondirColon ":" contained display
syn include @ondirShell syntax/sh.vim
syn region ondirContent start="^\s\+" end="^\ze\S.*$" keepend contained contains=@ondirShell
syn region ondirSection start="^\(final\|enter\|leave\)" end="^\ze\S.*$" fold contains=ondirKeyword,ondirPath,ondirColon,ondirContent
hi def link ondirComment Comment
hi def link ondirKeyword Keyword
hi def link ondirPath Special
hi def link ondirColon Operator
let b:current_syntax = 'ondir'
let &cpoptions = s:cpo_save
unlet s:cpo_save
" vim: et ts=4 sw=2 sts=2: