codekingpro/portable-devtools
114k
1" Vim syntax file2" Language: Century Term Command Script3" Maintainer: Sean M. McKee <mckee@misslink.net>4" Last Change: 2002 Apr 135" Version Info: @(#)cterm.vim 1.7 97/12/15 09:23:146 7" quit when a syntax file was already loaded8if exists("b:current_syntax")9 finish10endif11 12syn case ignore13 14"FUNCTIONS15syn keyword ctermFunction abort addcr addlf answer at attr batch baud16syn keyword ctermFunction break call capture cd cdelay charset cls color17syn keyword ctermFunction combase config commect copy cread18syn keyword ctermFunction creadint devprefix dialer dialog dimint19syn keyword ctermFunction dimlog dimstr display dtimeout dwait edit20syn keyword ctermFunction editor emulate erase escloop fcreate21syn keyword ctermFunction fflush fillchar flags flush fopen fread22syn keyword ctermFunction freadln fseek fwrite fwriteln get hangup23syn keyword ctermFunction help hiwait htime ignore init itime24syn keyword ctermFunction keyboard lchar ldelay learn lockfile25syn keyword ctermFunction locktime log login logout lowait26syn keyword ctermFunction lsend ltime memlist menu mkdir mode27syn keyword ctermFunction modem netdialog netport noerror pages parity28syn keyword ctermFunction pause portlist printer protocol quit rcv29syn keyword ctermFunction read readint readn redial release30syn keyword ctermFunction remote rename restart retries return31syn keyword ctermFunction rmdir rtime run runx scrollback send32syn keyword ctermFunction session set setcap setcolor setkey33syn keyword ctermFunction setsym setvar startserver status34syn keyword ctermFunction stime stopbits stopserver tdelay35syn keyword ctermFunction terminal time trans type usend version36syn keyword ctermFunction vi vidblink vidcard vidout vidunder wait37syn keyword ctermFunction wildsize wclose wopen wordlen wru wruchar38syn keyword ctermFunction xfer xmit xprot39syn match ctermFunction "?"40"syn keyword ctermFunction comment remark41 42"END FUNCTIONS43"INTEGER FUNCTIONS44syn keyword ctermIntFunction asc atod eval filedate filemode filesize ftell45syn keyword ctermIntFunction len termbits opsys pos sum time val mdmstat46"END INTEGER FUNCTIONS47 48"STRING FUNCTIONS49syn keyword ctermStrFunction cdate ctime chr chrdy chrin comin getenv50syn keyword ctermStrFunction gethomedir left midstr right str tolower51syn keyword ctermStrFunction toupper uniq comst exists feof hascolor52 53"END STRING FUNCTIONS54 55"PREDEFINED TERM VARIABLES R/W56syn keyword ctermPreVarRW f _escloop _filename _kermiteol _obufsiz57syn keyword ctermPreVarRW _port _rcvsync _cbaud _reval _turnchar58syn keyword ctermPreVarRW _txblksiz _txwindow _vmin _vtime _cparity59syn keyword ctermPreVarRW _cnumber false t true _cwordlen _cstopbits60syn keyword ctermPreVarRW _cmode _cemulate _cxprot _clogin _clogout61syn keyword ctermPreVarRW _cstartsrv _cstopsrv _ccmdfile _cwru62syn keyword ctermPreVarRW _cprotocol _captfile _cremark _combufsiz63syn keyword ctermPreVarRW logfile64"END PREDEFINED TERM VARIABLES R/W65 66"PREDEFINED TERM VARIABLES R/O67syn keyword ctermPreVarRO _1 _2 _3 _4 _5 _6 _7 _8 _9 _cursess68syn keyword ctermPreVarRO _lockfile _baud _errno _retval _sernum69syn keyword ctermPreVarRO _timeout _row _col _version70"END PREDEFINED TERM VARIABLES R/O71 72syn keyword ctermOperator not mod eq ne gt le lt ge xor and or shr not shl73 74"SYMBOLS75syn match CtermSymbols "|"76"syn keyword ctermOperators + - * / % = != > < >= <= & | ^ ! << >>77"END SYMBOLS78 79"STATEMENT80syn keyword ctermStatement off81syn keyword ctermStatement disk overwrite append spool none82syn keyword ctermStatement echo view wrap83"END STATEMENT84 85"TYPE86"syn keyword ctermType87"END TYPE88 89"USERLIB FUNCTIONS90"syn keyword ctermLibFunc91"END USERLIB FUNCTIONS92 93"LABEL94syn keyword ctermLabel case default95"END LABEL96 97"CONDITIONAL98syn keyword ctermConditional on endon99syn keyword ctermConditional proc endproc100syn keyword ctermConditional for in do endfor101syn keyword ctermConditional if else elseif endif iferror102syn keyword ctermConditional switch endswitch103syn keyword ctermConditional repeat until104"END CONDITIONAL105 106"REPEAT107syn keyword ctermRepeat while108"END REPEAT109 110" Function arguments (eg $1 $2 $3)111syn match ctermFuncArg "\$[1-9]"112 113syn keyword ctermTodo contained TODO114 115syn match ctermNumber "\<\d\+\(u\=l\=\|lu\|f\)\>"116"floating point number, with dot, optional exponent117syn match ctermNumber "\<\d\+\.\d*\(e[-+]\=\d\+\)\=[fl]\=\>"118"floating point number, starting with a dot, optional exponent119syn match ctermNumber "\.\d\+\(e[-+]\=\d\+\)\=[fl]\=\>"120"floating point number, without dot, with exponent121syn match ctermNumber "\<\d\+e[-+]\=\d\+[fl]\=\>"122"hex number123syn match ctermNumber "0x[0-9a-f]\+\(u\=l\=\|lu\)\>"124 125syn match ctermComment "![^=].*$" contains=ctermTodo126syn match ctermComment "!$"127syn match ctermComment "\*.*$" contains=ctermTodo128syn region ctermComment start="comment" end="$" contains=ctermTodo129syn region ctermComment start="remark" end="$" contains=ctermTodo130 131syn region ctermVar start="\$(" end=")"132 133" String and Character contstants134" Highlight special characters (those which have a backslash) differently135syn match ctermSpecial contained "\\\d\d\d\|\\."136syn match ctermSpecial contained "\^."137syn region ctermString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=ctermSpecial,ctermVar,ctermSymbols138syn match ctermCharacter "'[^\\]'"139syn match ctermSpecialCharacter "'\\.'"140 141" Define the default highlighting.142" Only when an item doesn't have highlighting yet143 144hi def link ctermStatement Statement145hi def link ctermFunction Statement146hi def link ctermStrFunction Statement147hi def link ctermIntFunction Statement148hi def link ctermLabel Statement149hi def link ctermConditional Statement150hi def link ctermRepeat Statement151hi def link ctermLibFunc UserDefFunc152hi def link ctermType Type153hi def link ctermFuncArg PreCondit154 155hi def link ctermPreVarRO PreCondit156hi def link ctermPreVarRW PreConditBold157hi def link ctermVar Type158 159hi def link ctermComment Comment160 161hi def link ctermCharacter SpecialChar162hi def link ctermSpecial Special163hi def link ctermSpecialCharacter SpecialChar164hi def link ctermSymbols Special165hi def link ctermString String166hi def link ctermTodo Todo167hi def link ctermOperator Statement168hi def link ctermNumber Number169 170" redefine the colors171"hi PreConditBold term=bold ctermfg=1 cterm=bold guifg=Purple gui=bold172"hi Special term=bold ctermfg=6 guifg=SlateBlue gui=underline173 174 175let b:current_syntax = "cterm"176 177" vim: ts=8178 