Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
kwt.vim71 linesDownload Raw Back to syntax
1" Vim syntax file2" Language:	kimwitu++3" Maintainer:	Michael Piefel <entwurf@piefel.de>4" Last Change:	2 May 20015 6" quit when a syntax file was already loaded7if exists("b:current_syntax")8    finish9endif10 11" Read the C++ syntax to start with12runtime! syntax/cpp.vim13unlet b:current_syntax14 15" kimwitu++ extentions16 17" Don't stop at eol, messes around with CPP mode, but gives line spanning18" strings in unparse rules19syn region cCppString		start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=cSpecial,cFormat20syn keyword cType		integer real casestring nocasestring voidptr list21syn keyword cType		uview rview uview_enum rview_enum22 23" avoid unparsing rule sth:view being scanned as label24syn clear   cUserCont25syn match   cUserCont		"^\s*\I\i*\s*:$" contains=cUserLabel contained26syn match   cUserCont		";\s*\I\i*\s*:$" contains=cUserLabel contained27syn match   cUserCont		"^\s*\I\i*\s*:[^:]"me=e-1 contains=cUserLabel contained28syn match   cUserCont		";\s*\I\i*\s*:[^:]"me=e-1 contains=cUserLabel contained29 30" highlight phylum decls31syn match   kwtPhylum		"^\I\i*:$"32syn match   kwtPhylum		"^\I\i*\s*{\s*\(!\|\I\)\i*\s*}\s*:$"33 34syn keyword kwtStatement	with foreach afterforeach provided35syn match kwtDecl		"%\(uviewvar\|rviewvar\)"36syn match kwtDecl		"^%\(uview\|rview\|ctor\|dtor\|base\|storageclass\|list\|attr\|member\|option\)"37syn match kwtOption		"no-csgio\|no-unparse\|no-rewrite\|no-printdot\|no-hashtables\|smart-pointer\|weak-pointer"38syn match kwtSep		"^%}$"39syn match kwtSep		"^%{\(\s\+\I\i*\)*$"40syn match kwtCast		"\<phylum_cast\s*<"me=e-141syn match kwtCast		"\<phylum_cast\s*$"42 43 44" match views, remove paren error in brackets45syn clear cErrInBracket46syn match cErrInBracket		contained ")"47syn match kwtViews		"\(\[\|<\)\@<=[ [:alnum:]_]\{-}:"48 49" match rule bodies50syn region kwtUnpBody		transparent keepend extend fold start="->\s*\[" start="^\s*\[" skip="\$\@<!{\_.\{-}\$\@<!}" end="\s]\s\=;\=$" end="^]\s\=;\=$" end="}]\s\=;\=$"51syn region kwtRewBody		transparent keepend extend fold start="->\s*<" start="^\s*<" end="\s>\s\=;\=$" end="^>\s\=;\=$"52 53" Define the default highlighting.54" Only when an item doesn't have highlighting yet55 56hi def link kwtStatement	cppStatement57hi def link kwtDecl	cppStatement58hi def link kwtCast	cppStatement59hi def link kwtSep	Delimiter60hi def link kwtViews	Label61hi def link kwtPhylum	Type62hi def link kwtOption	PreProc63"hi def link cText	Comment64 65 66syn sync lines=30067 68let b:current_syntax = "kwt"69 70" vim: ts=871 
codekingpro/portable-devtools · Team Ai