Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
calendar.vim111 linesDownload Raw Back to syntax
1" Vim syntax file2" Language:             calendar(1) input file3" Previous Maintainer:  Nikolai Weibull <now@bitwi.se>4" Latest Revision:      2006-04-195 6if exists("b:current_syntax")7  finish8endif9 10let s:cpo_save = &cpo11set cpo&vim12 13syn keyword calendarTodo          contained TODO FIXME XXX NOTE14 15syn region  calendarComment       start='/\*' end='\*/'16                                  \ contains=calendarTodo,@Spell17 18syn region  calendarCppString     start=+L\="+ skip=+\\\\\|\\"\|\\$+ excludenl19                                  \ end=+"+ end='$' contains=calendarSpecial20syn match   calendarSpecial       display contained '\\\%(x\x\+\|\o\{1,3}\|.\|$\)'21syn match   calendarSpecial       display contained "\\\(u\x\{4}\|U\x\{8}\)"22 23syn region  calendarPreCondit     start='^\s*#\s*\%(if\|ifdef\|ifndef\|elif\)\>'24                                  \ skip='\\$' end='$'25                                  \ contains=calendarComment,calendarCppString26syn match   calendarPreCondit     display '^\s*#\s*\%(else\|endif\)\>'27syn region  calendarCppOut        start='^\s*#\s*if\s\+0\+' end='.\@=\|$'28                                  \ contains=calendarCppOut229syn region  calendarCppOut2       contained start='0'30                                  \ end='^\s*#\s*\%(endif\|else\|elif\)\>'31                                  \ contains=calendarSpaceError,calendarCppSkip32syn region  calendarCppSkip       contained33                                  \ start='^\s*#\s*\%(if\|ifdef\|ifndef\)\>'34                                  \ skip='\\$' end='^\s*#\s*endif\>'35                                  \ contains=calendarSpaceError,calendarCppSkip36syn region  calendarIncluded      display contained start=+"+ skip=+\\\\\|\\"+37                                  \ end=+"+38syn match   calendarIncluded      display contained '<[^>]*>'39syn match   calendarInclude       display '^\s*#\s*include\>\s*["<]'40                                  \ contains=calendarIncluded41syn cluster calendarPreProcGroup  contains=calendarPreCondit,calendarIncluded,42                                  \ calendarInclude,calendarDefine,43                                  \ calendarCppOut,calendarCppOut2,44                                  \ calendarCppSkip,calendarString,45                                  \ calendarSpecial,calendarTodo46syn region  calendarDefine        start='^\s*#\s*\%(define\|undef\)\>'47                                  \ skip='\\$' end='$'48                                  \ contains=ALLBUT,@calendarPreProcGroup49syn region  calendarPreProc       start='^\s*#\s*\%(pragma\|line\|warning\|warn\|error\)\>'50                                  \ skip='\\$' end='$' keepend51                                  \ contains=ALLBUT,@calendarPreProcGroup52 53syn keyword calendarKeyword       CHARSET BODUN LANG54syn case ignore55syn keyword calendarKeyword       Easter Pashka56syn case match57 58syn case ignore59syn match   calendarNumber        display '\<\d\+\>'60syn keyword calendarMonth         Jan[uary] Feb[ruary] Mar[ch] Apr[il] May61                                  \ Jun[e] Jul[y] Aug[ust] Sep[tember]62                                  \ Oct[ober] Nov[ember] Dec[ember]63syn match   calendarMonth         display '\<\%(Jan\|Feb\|Mar\|Apr\|May\|Jun\|Jul\|Aug\|Sep\|Oct\|Nov\|Dec\)\.'64syn keyword calendarWeekday       Mon[day] Tue[sday] Wed[nesday] Thu[rsday]65syn keyword calendarWeekday       Fri[day] Sat[urday] Sun[day]66syn match   calendarWeekday       display '\<\%(Mon\|Tue\|Wed\|Thu\|Fri\|Sat\|Sun\)\.'67                                  \ nextgroup=calendarWeekdayMod68syn match   calendarWeekdayMod    display '[+-]\d\+\>'69syn case match70 71syn match   calendarTime          display '\<\%([01]\=\d\|2[0-3]\):[0-5]\d\%(:[0-5]\d\)\='72syn match   calendarTime          display '\<\%(0\=[1-9]\|1[0-2]\):[0-5]\d\%(:[0-5]\d\)\=\s*[AaPp][Mm]'73 74syn match calendarVariable        '\*'75 76if exists("c_minlines")77  let b:c_minlines = c_minlines78else79  if !exists("c_no_if0")80    let b:c_minlines = 50       " #if 0 constructs can be long81  else82    let b:c_minlines = 15       " mostly for () constructs83  endif84endif85exec "syn sync ccomment calendarComment minlines=" . b:c_minlines86 87hi def link calendarTodo          Todo88hi def link calendarComment       Comment89hi def link calendarCppString     String90hi def link calendarSpecial       SpecialChar91hi def link calendarPreCondit     PreCondit92hi def link calendarCppOut        Comment93hi def link calendarCppOut2       calendarCppOut94hi def link calendarCppSkip       calendarCppOut95hi def link calendarIncluded      String96hi def link calendarInclude       Include97hi def link calendarDefine        Macro98hi def link calendarPreProc       PreProc99hi def link calendarKeyword       Keyword100hi def link calendarNumber        Number101hi def link calendarMonth         String102hi def link calendarWeekday       String103hi def link calendarWeekdayMod    Special104hi def link calendarTime          Number105hi def link calendarVariable      Identifier106 107let b:current_syntax = "calendar"108 109let &cpo = s:cpo_save110unlet s:cpo_save111 
codekingpro/portable-devtools · Team Ai