codekingpro/portable-devtools
114k
1" Vim syntax file2" Language: CL3" (pronounced alphabetically: "Cee-El".4" CL stands for Clever Language,5" but the language is CL, not "Clever".6" CL was created by Multibase, http://www.mbase.com.au)7" Filename extensions: *.ent8" *.eni9" Maintainer: Philip Uren <philuSPAX@ieee.org> Remove SPAX spam block10" Version: 611" Last Change: Mar 06 201312 13" quit when a syntax file was already loaded14if exists("b:current_syntax")15 finish16endif17 18setlocal iskeyword=@,48-57,_,-19 20syn case ignore21 22syn sync lines=30023 24"If/else/elsif/endif and while/wend mismatch errors25syn match clifError "\<wend\>"26syn match clifError "\<elsif\>"27syn match clifError "\<else\>"28syn match clifError "\<endif\>"29 30syn match clSpaceError "\s\+$"31 32" If and while regions33syn region clLoop transparent matchgroup=clWhile start="\<while\>" matchgroup=clWhile end="\<wend\>" contains=ALLBUT,clBreak,clProcedure34syn region clIf transparent matchgroup=clConditional start="\<if\>" matchgroup=clConditional end="\<endif\>" contains=ALLBUT,clBreak,clProcedure35 36" Make those TODO notes and debugging stand out!37syn keyword clTodo contained TODO BUG DEBUG FIX38syn match clNeedsWork contained "NEED[S]*\s\s*WORK"39syn keyword clDebug contained debug40 41syn match clComment "#.*$" contains=clTodo,clNeedsWork,@Spell42syn region clProcedure oneline start="^\s*[{}]" end="$"43syn match clInclude "^\s*include\s.*"44 45" We don't put "debug" in the clSetOptions;46" we contain it in clSet so we can make it stand out.47syn keyword clSetOptions transparent aauto abort align convert E fill fnum goback hangup justify null_exit output rauto rawprint rawdisplay repeat skip tab trim48syn match clSet "^\s*set\s.*" contains=clSetOptions,clDebug49 50syn match clPreProc "^\s*#P.*"51 52syn keyword clConditional else elsif53syn keyword clWhile continue endloop54" 'break' needs to be a region so we can sync on it above.55syn region clBreak oneline start="^\s*break" end="$"56 57syn match clOperator "[!;|)(:.><+*=-]"58 59syn match clNumber "\<\d\+\(u\=l\=\|lu\|f\)\>"60 61syn region clString matchgroup=clQuote start=+"+ end=+"+ skip=+\\"+ contains=@Spell62syn region clString matchgroup=clQuote start=+'+ end=+'+ skip=+\\'+ contains=@Spell63 64syn keyword clReserved ERROR EXIT INTERRUPT LOCKED LREPLY MODE MCOL MLINE MREPLY NULL REPLY V1 V2 V3 V4 V5 V6 V7 V8 V9 ZERO BYPASS GOING_BACK AAUTO ABORT ABORT ALIGN BIGE CONVERT FNUM GOBACK HANGUP JUSTIFY NEXIT OUTPUT RAUTO RAWDISPLAY RAWPRINT REPEAT SKIP TAB TRIM LCOUNT PCOUNT PLINES SLINES SCOLS MATCH LMATCH65 66syn keyword clFunction asc asize chr name random slen srandom day getarg getcgi getenv lcase scat sconv sdel skey smult srep substr sword trim ucase match67 68syn keyword clStatement clear clear_eol clear_eos close copy create unique with where empty define define ldefine delay_form delete escape exit_block exit_do exit_process field fork format get getfile getnext getprev goto head join maintain message no_join on_eop on_key on_exit on_delete openin openout openapp pause popenin popenout popenio print put range read redisplay refresh restart_block screen select sleep text unlock write and not or do69 70" Define the default highlighting.71" Only when an item doesn't have highlighting yet72 73hi def link clifError Error74hi def link clSpaceError Error75hi def link clWhile Repeat76hi def link clConditional Conditional77hi def link clDebug Debug78hi def link clNeedsWork Todo79hi def link clTodo Todo80hi def link clComment Comment81hi def link clProcedure Procedure82hi def link clBreak Procedure83hi def link clInclude Include84hi def link clSetOption Statement85hi def link clSet Identifier86hi def link clPreProc PreProc87hi def link clOperator Operator88hi def link clNumber Number89hi def link clString String90hi def link clQuote Delimiter91hi def link clReserved Identifier92hi def link clFunction Function93hi def link clStatement Statement94 95 96let b:current_syntax = "cl"97 98" vim: ts=8 sw=899 