robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
9bb046d1be
master
1" Vim syntax file 2" Language: DCL (Digital Command Language - vms) 3" Maintainer: This runtime file is looking for a new maintainer. 4" Former Maintainer: Charles E. Campbell 5" Last Change: Mar 26, 2019 6" Version: 13 7" Former URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_DCL 8 9" quit when a syntax file was already loaded 10if exists ( "b:current_syntax" ) 11finish 12endif 13 14if ( v: version == 704 && has ( "patch-7.4.1142" )) || v: version > 704 15syn iskeyword $,@,48-57,_ 16else 17setlocal iskeyword = $,@,48-57,_ 18endif 19 20syn case ignore 21syn keyword dclInstr accounting del[ete] gen[cat] mou[nt] run 22syn keyword dclInstr all[ocate] dep[osit] gen[eral] ncp run[off] 23syn keyword dclInstr ana[lyze] dia[gnose] gos[ub] ncs sca 24syn keyword dclInstr app[end] dif[ferences] got[o] on sea[rch] 25syn keyword dclInstr ass[ign] dir[ectory] hel[p] ope[n] set 26syn keyword dclInstr att[ach] dis[able] ico[nv] pas[cal] sho[w] 27syn keyword dclInstr aut[horize] dis[connect] if pas[sword] sor[t] 28syn keyword dclInstr aut[ogen] dis[mount] ini[tialize] pat[ch] spa[wn] 29syn keyword dclInstr bac[kup] dpm[l] inq[uire] pca sta[rt] 30syn keyword dclInstr cal[l] dqs ins[tall] pho[ne] sto[p] 31syn keyword dclInstr can[cel] dsr job pri[nt] sub[mit] 32syn keyword dclInstr cc dst[graph] lat[cp] pro[duct] sub[routine] 33syn keyword dclInstr clo[se] dtm lib[rary] psw[rap] swx[cr] 34syn keyword dclInstr cms dum[p] lic[ense] pur[ge] syn[chronize] 35syn keyword dclInstr con[nect] edi[t] lin[k] qde[lete] sys[gen] 36syn keyword dclInstr con[tinue] ena[ble] lmc[p] qse[t] sys[man] 37syn keyword dclInstr con[vert] end[subroutine] loc[ale] qsh[ow] tff 38syn keyword dclInstr cop[y] eod log[in] rea[d] then 39syn keyword dclInstr cre[ate] eoj log[out] rec[all] typ[e] 40syn keyword dclInstr cxx exa[mine] lse[dit] rec[over] uil 41syn keyword dclInstr cxx[l_help] exc[hange] mac[ro] ren[ame] unl[ock] 42syn keyword dclInstr dea[llocate] exi[t] mai[l] rep[ly] ves[t] 43syn keyword dclInstr dea[ssign] fdl mer[ge] req[uest] vie[w] 44syn keyword dclInstr deb[ug] flo[wgraph] mes[sage] ret[urn] wai[t] 45syn keyword dclInstr dec[k] fon[t] mms rms wri[te] 46syn keyword dclInstr def[ine] for[tran] 47 48syn keyword dclLexical f $context f$edit f$getjpi f$message f$setprv 49syn keyword dclLexical f $csid f$element f$getqui f$mode f$string 50syn keyword dclLexical f $cvsi f$environment f$getsyi f$parse f$time 51syn keyword dclLexical f $cvtime f$extract f$identifier f$pid f$trnlnm 52syn keyword dclLexical f $cvui f$fao f$integer f$privilege f$type 53syn keyword dclLexical f $device f$file_attributes f$length f$process f$user 54syn keyword dclLexical f $directory f$getdvi f$locate f$search f$verify 55 56syn match dclMdfy "/\I\i * "nextgroup = dclMdfySet , dclMdfySetString 57syn match dclMdfySet "= [ ^ \t" ] * "contained 58syn region dclMdfySet matchgroup = dclMdfyBrkt start = "=\[ "matchgroup = dclMdfyBrkt end = "] "contains = dclMdfySep 59syn region dclMdfySetString start = '=" 'skip = '"" 'end = '" 'contained 60syn match dclMdfySep "[ :, ] "contained 61 62" Numbers 63syn match dclNumber "\d\+ " 64 65" Varname (mainly to prevent dclNumbers from being recognized when part of a dclVarname) 66syn match dclVarname "\I\i * " 67 68" Filenames (devices, paths) 69syn match dclDevice "\I\i * \(\$\I\i * \)\=: [ ^= ] "me= e-1nextgroup = dclDirPath , dclFilename 70syn match dclDirPath "\[\(\I\i * \.\) * \I\i * \] "contains = dclDirSep nextgroup = dclFilename 71syn match dclFilename "\I\i * \$\(\I\i * \)\=\.\(\I\i * \) * \(;\d\+\)\= "contains = dclDirSep 72syn match dclFilename "\I\i * \.\(\I\i * \)\=\(;\d\+\)\= "contains = dclDirSep contained 73syn match dclDirSep "[ [\].; ] " 74 75" Strings 76syn region dclString start = '" 'skip = '"" 'end = '" 'contains = @Spell 77 78" $ stuff and comments 79syn cluster dclCommentGroup contains = dclStart , dclTodo , @Spell 80syn match dclStart "^\$ "skipwhite nextgroup = dclExe 81syn match dclContinue "-$ " 82syn match dclComment "^\$!. * $ "contains = @dclCommentGroup 83syn match dclExe "\I\i * "contained 84syn keyword dclTodo contained COMBAK DEBUG FIXME TODO XXX 85 86" Assignments and Operators 87syn match dclAssign ":==\= " 88syn match dclAssign "= " 89syn match dclOper "--\|+\|\*\|/ " 90syn match dclLogOper "\. [ a-zA-Z ][ a-zA-Z ][ a-zA-Z ] \=\. "contains = dclLogical , dclLogSep 91syn keyword dclLogical contained and ge gts lt nes 92syn keyword dclLogical contained eq ges le lts not 93syn keyword dclLogical contained eqs gt les ne or 94syn match dclLogSep "\. "contained 95 96" @command procedures 97syn match dclCmdProcStart "@ "nextgroup = dclCmdProc 98syn match dclCmdProc "\I\i * \(\.\I\i * \)\= "contained 99syn match dclCmdProc "\I\i * : "contained nextgroup = dclCmdDirPath , dclCmdProc 100syn match dclCmdDirPath "\[\(\I\i * \.\) * \I\i * \] "contained nextgroup = delCmdProc 101 102" labels 103syn match dclGotoLabel "^\$\s * \I\i * :\s * $ "contains = dclStart 104 105" parameters 106syn match dclParam "'\I [ a-zA-Z0-9_$ ] * '\= " 107 108syn region dclFuncList matchgroup = Delimiter start = "( "matchgroup = Delimiter end = ") "contains = ALLBUT , dclCmdDirPath , dclCmdProc , dclCmdProc , dclDirPath , dclFilename , dclFilename , dclMdfySet , dclMdfySetString , delCmdProc , dclExe , dclTodo 109syn match dclError ") " 110 111" Define the default highlighting. 112if ! exists ( "skip_dcl_syntax_inits" ) 113 114hi def link dclLogOper dclError 115hi def link dclLogical dclOper 116hi def link dclLogSep dclSep 117 118hi def link dclAssign Operator 119hi def link dclCmdProc Special 120hi def link dclCmdProcStart Operator 121hi def link dclComment Comment 122hi def link dclContinue Statement 123hi def link dclDevice Identifier 124hi def link dclDirPath Identifier 125hi def link dclDirPath Identifier 126hi def link dclDirSep Delimiter 127hi def link dclError Error 128hi def link dclExe Statement 129hi def link dclFilename NONE 130hi def link dclGotoLabel Label 131hi def link dclInstr Statement 132hi def link dclLexical Function 133hi def link dclMdfy Type 134hi def link dclMdfyBrkt Delimiter 135hi def link dclMdfySep Delimiter 136hi def link dclMdfySet Type 137hi def link dclMdfySetString String 138hi def link dclNumber Number 139hi def link dclOper Operator 140hi def link dclParam Special 141hi def link dclSep Delimiter 142hi def link dclStart Delimiter 143hi def link dclString String 144hi def link dclTodo Todo 145 146endif 147 148let b: current_syntax = "dcl" 149 150" vim: ts=16