Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
ondir.vim36 linesDownload Raw Back to syntax
1" Vim syntax file2" Language:     ondir <https://github.com/alecthomas/ondir>3" Maintainer:   Jon Parise <jon@indelible.org>4 5if exists('b:current_syntax')6  finish7endif8 9let s:cpo_save = &cpoptions10set cpoptions&vim11 12syn case match13 14syn match   ondirComment  "#.*" contains=@Spell15syn keyword ondirKeyword  final contained skipwhite nextgroup=ondirKeyword16syn keyword ondirKeyword  enter leave contained skipwhite nextgroup=ondirPath17syn match   ondirPath     "[^:]\+" contained display18syn match   ondirColon    ":" contained display19 20syn include @ondirShell   syntax/sh.vim21syn region  ondirContent  start="^\s\+" end="^\ze\S.*$" keepend contained contains=@ondirShell22 23syn region  ondirSection  start="^\(final\|enter\|leave\)" end="^\ze\S.*$" fold contains=ondirKeyword,ondirPath,ondirColon,ondirContent24 25hi def link ondirComment  Comment26hi def link ondirKeyword  Keyword27hi def link ondirPath     Special28hi def link ondirColon    Operator29 30let b:current_syntax = 'ondir'31 32let &cpoptions = s:cpo_save33unlet s:cpo_save34 35" vim: et ts=4 sw=2 sts=2:36 
codekingpro/portable-devtools · Team Ai