Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
hastepreproc.vim39 linesDownload Raw Back to syntax
1" Vim syntax file2" Language:	Haste preprocessor files 3" Maintainer:	M. Tranchero - maurizio.tranchero@gmail.com4" Credits:	some parts have been taken from vhdl, verilog, and C syntax5"		files6" Version:	0.57 8" quit when a syntax file was already loaded9if exists("b:current_syntax")10  finish11endif12" Read the haste syntax to start with13runtime! syntax/haste.vim14unlet b:current_syntax15 16" case is significant17syn case match18 19" C pre-processor directives20syn match  hastepreprocVar 	display "\$[[:alnum:]_]*"21syn region hastepreprocVar	start="\${" end="}" contains=hastepreprocVar22"23"syn region hastepreproc		start="#\[\s*tg[:alnum:]*" end="]#" contains=hastepreprocVar,hastepreproc,hastepreprocError,@Spell24syn region hastepreproc		start="#\[\s*\(\|tgfor\|tgif\)" end="$" contains=hastepreprocVar,hastepreproc,@Spell25syn region hastepreproc		start="}\s\(else\)\s{" end="$" contains=hastepreprocVar,hastepreproc,@Spell26syn region hastepreproc		start="^\s*#\s*\(ifndef\|ifdef\|else\|endif\)\>" end="$" contains=@hastepreprocGroup,@Spell27syn region hastepreproc		start="\s*##\s*\(define\|undef\)\>" end="$" contains=@hastepreprocGroup,@Spell28syn match hastepreproc		"}\{0,1}\s*]#"29 30" Define the default highlighting.31" Only when an item doesn't have highlighting yet32hi def link hastepreproc	Preproc33hi def link hastepreprocVar	Special34hi def link hastepreprocError	Error35 36let b:current_syntax = "hastepreproc"37 38" vim: ts=839 
codekingpro/portable-devtools · Team Ai