Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
zimbu.vim162 linesDownload Raw Back to syntax
1" Vim syntax file2" Language:	Zimbu3" Maintainer:	The·Vim·Project·<https://github.com/vim/vim>4" Last Change:	2023 Aug 135" Note: 	Zimbu seems to be dead :(6 7if exists("b:current_syntax")8  finish9endif10 11syn include @Ccode syntax/c.vim12 13syn keyword zimbuTodo		TODO FIXME XXX contained14syn match   zimbuNoBar          "|" contained15syn match   zimbuParam  	"|[^| ]\+|" contained contains=zimbuNoBar16syn match   zimbuNoBacktick     "`" contained17syn match   zimbuCode  		"`[^`]\+`" contained contains=zimbuNoBacktick18syn match   zimbuComment	"#.*$" contains=zimbuTodo,zimbuParam,zimbuCode,@Spell19syn match   zimbuComment	"/\*.\{-}\*/" contains=zimbuTodo,zimbuParam,zimbuCode,@Spell20 21syn match   zimbuChar	"'\\\=.'"22 23syn keyword zimbuBasicType	bool status24syn keyword zimbuBasicType	int1 int2 int3 int4 int5 int6 int725syn keyword zimbuBasicType	int9 int10 int11 int12 int13 int14 int1526syn keyword zimbuBasicType	int int8 int16 int32 int64 bigInt27syn keyword zimbuBasicType	nat nat8 byte nat16 nat32 nat64 bigNat28syn keyword zimbuBasicType	nat1 nat2 nat3 nat4 nat5 nat6 nat729syn keyword zimbuBasicType	nat9 nat10 nat11 nat12 nat13 nat14 nat1530syn keyword zimbuBasicType	float float32 float64 float80 float12831syn keyword zimbuBasicType	fixed1 fixed2 fixed3 fixed4 fixed5 fixed632syn keyword zimbuBasicType	fixed7 fixed8 fixed9 fixed10 fixed11 fixed1233syn keyword zimbuBasicType	fixed13 fixed14 fixed1534 35syn keyword zimbuCompType	string varString36syn keyword zimbuCompType	byteString varByteString37syn keyword zimbuCompType	tuple array list dict dictList set callback38syn keyword zimbuCompType	sortedList multiDict multiDictList multiSet39syn keyword zimbuCompType	complex complex32 complex64 complex80 complex12840syn keyword zimbuCompType	proc func def thread evalThread lock cond pipe41 42syn keyword zimbuType   VAR dyn type USE GET43syn match zimbuType	"IO.File"44syn match zimbuType	"IO.Stat"45 46syn keyword zimbuStatement IF ELSE ELSEIF IFNIL WHILE REPEAT FOR IN TO STEP47syn keyword zimbuStatement DO UNTIL SWITCH WITH48syn keyword zimbuStatement TRY CATCH FINALLY49syn keyword zimbuStatement GENERATE_IF GENERATE_ELSE GENERATE_ELSEIF50syn keyword zimbuStatement GENERATE_ERROR51syn keyword zimbuStatement BUILD_IF BUILD_ELSE BUILD_ELSEIF52syn keyword zimbuStatement CASE DEFAULT FINAL ABSTRACT VIRTUAL DEFINE REPLACE53syn keyword zimbuStatement IMPLEMENTS EXTENDS PARENT LOCAL54syn keyword zimbuStatement PART ALIAS TYPE CONNECT WRAP55syn keyword zimbuStatement BREAK CONTINUE PROCEED56syn keyword zimbuStatement RETURN EXIT THROW DEFER57syn keyword zimbuStatement IMPORT AS OPTIONS MAIN58syn keyword zimbuStatement INTERFACE PIECE INCLUDE MODULE ENUM BITS59syn keyword zimbuStatement SHARED STATIC60syn keyword zimbuStatement LAMBDA61syn match zimbuStatement "\<\(FUNC\|PROC\|DEF\)\>"62syn match zimbuStatement "\<CLASS\>"63syn match zimbuStatement "}"64 65syn match zimbuAttribute "@backtrace=no\>"66syn match zimbuAttribute "@backtrace=yes\>"67syn match zimbuAttribute "@abstract\>"68syn match zimbuAttribute "@earlyInit\>"69syn match zimbuAttribute "@default\>"70syn match zimbuAttribute "@define\>"71syn match zimbuAttribute "@replace\>"72syn match zimbuAttribute "@final\>"73syn match zimbuAttribute "@primitive\>"74syn match zimbuAttribute "@notOnExit\>"75 76syn match zimbuAttribute "@private\>"77syn match zimbuAttribute "@protected\>"78syn match zimbuAttribute "@public\>"79syn match zimbuAttribute "@local\>"80syn match zimbuAttribute "@file\>"81syn match zimbuAttribute "@directory\>"82syn match zimbuAttribute "@read=private\>"83syn match zimbuAttribute "@read=protected\>"84syn match zimbuAttribute "@read=public\>"85syn match zimbuAttribute "@read=file\>"86syn match zimbuAttribute "@read=directory\>"87syn match zimbuAttribute "@items=private\>"88syn match zimbuAttribute "@items=protected\>"89syn match zimbuAttribute "@items=public\>"90syn match zimbuAttribute "@items=file\>"91syn match zimbuAttribute "@items=directory\>"92 93syn keyword zimbuMethod NEW EQUAL COPY COMPARE SIZE GET SET INIT EARLYINIT94 95syn keyword zimbuOperator IS ISNOT ISA ISNOTA96 97syn keyword zimbuModule  ARG CHECK E GC IO LOG PROTO SYS HTTP ZC ZWT T TIME THREAD98 99syn match zimbuImport  "\.\zsPROTO"100syn match zimbuImport  "\.\zsCHEADER"101 102"syn match zimbuString  +"\([^"\\]\|\\.\)*\("\|$\)+ contains=zimbuStringExpr103syn region zimbuString  start=+"+  skip=+[^"\\]\|\\.+ end=+"\|$+ contains=zimbuStringExpr104syn match zimbuString  +R"\([^"]\|""\)*\("\|$\)+105syn region zimbuLongString  start=+''"+ end=+"''+106syn match zimbuStringExpr +\\([^)]*)+hs=s+2,he=e-1 contained contains=zimbuString,zimbuParenPairOuter107syn region zimbuParenPairOuter  start=+(+ms=s+1  end=+)+me=e-1 contained contains=zimbuString,zimbuParenPair108syn region zimbuParenPair  start=+(+  end=+)+ contained contains=zimbuString,zimbuParenPair109 110syn keyword zimbuFixed  TRUE FALSE NIL THIS THISTYPE FAIL OK111syn keyword zimbuError  NULL112 113" trailing whitespace114syn match   zimbuSpaceError   display excludenl "\S\s\+$"ms=s+1115" mixed tabs and spaces116syn match   zimbuSpaceError   display " \+\t"117syn match   zimbuSpaceError   display "\t\+ "118 119syn match zimbuUses contained "\<uses([a-zA-Z_ ,]*)"120syn match zimbuBlockgc contained "blockgc"121syn match zimbuBlockComment contained " #.*"122 123syn region zimbuCregion matchgroup=zimbuCblock start="^>>>" end="^<<<.*" contains=@Ccode,zimbuUses,zimbuBlockgc,zimbuBlockComment keepend124 125" Assume long strings and C regions don't take more than 200 lines.126syn sync minlines=200127 128" When we find the start of a long string, without a # or " before it, we are129" sure to be inside a long string.130syn sync match zimbuLongStringSync grouphere zimbuLongString +^[^"#]*''\"+131 132hi def link zimbuBasicType	Type133hi def link zimbuCompType	Type134hi def link zimbuType		Type135hi def link zimbuStatement	Statement136hi def link zimbuOperator	Statement137hi def link zimbuMethod		PreProc138hi def link zimbuModule		PreProc139hi def link zimbuImport		PreProc140hi def link zimbuUses		PreProc141hi def link zimbuBlockgc	PreProc142hi def link zimbuAttribute	PreProc143hi def link zimbuString		Constant144hi def link zimbuLongString	Special145hi def link zimbuChar		Constant146hi def link zimbuFixed		Constant147hi def link zimbuComment	Comment148hi def link zimbuCommentStart	zimbuComment149hi def link zimbuBlockComment	Comment150hi def link zimbuCblock		Comment151hi def link zimbuTodo		Todo152hi def link zimbuParam		Constant153hi def link zimbuCode		Statement154hi def link zimbuNoBar		Ignore155hi def link zimbuNoBacktick	Ignore156hi def link zimbuSpaceError	Error157hi def link zimbuError		Error158 159let b:current_syntax = "zimbu"160 161" vim: ts=8162 
codekingpro/portable-devtools · Team Ai