Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes15kdownloads
htmlos.vim150 linesDownload Raw Back to syntax
1" Vim syntax file2" Language:	HTML/OS by Aestiva3" Maintainer:	Jason Rust <jrust@westmont.edu>4" URL:		http://www.rustyparts.com/vim/syntax/htmlos.vim5" Info:		http://www.rustyparts.com/scripts.php6" Last Change:	2003 May 117"8 9" quit when a syntax file was already loaded10if exists("b:current_syntax")11  finish12endif13 14if !exists("main_syntax")15  let main_syntax = 'htmlos'16endif17 18runtime! syntax/html.vim19unlet b:current_syntax20 21syn cluster htmlPreproc add=htmlosRegion22 23syn case ignore24 25" Function names26syn keyword	htmlosFunctions	expand sleep getlink version system ascii getascii syslock sysunlock cr lf clean postprep listtorow split listtocol coltolist rowtolist tabletolist	contained27syn keyword	htmlosFunctions	cut \display cutall cutx cutallx length reverse lower upper proper repeat left right middle trim trimleft trimright count countx locate locatex replace replacex replaceall replaceallx paste pasteleft pasteleftx pasteleftall pasteleftallx pasteright pasterightall pasterightallx chopleft chopleftx chopright choprightx format concat	contained28syn keyword	htmlosFunctions	goto exitgoto	contained29syn keyword	htmlosFunctions	layout cols rows row items getitem putitem switchitems gettable delrow delrows delcol delcols append  merge fillcol fillrow filltable pastetable getcol getrow fillindexcol insindexcol dups nodups maxtable mintable maxcol mincol maxrow minrow avetable avecol averow mediantable mediancol medianrow producttable productcol productrow sumtable sumcol sumrow sumsqrtable sumsqrcol sumsqrrow reversecols reverserows switchcols switchrows inscols insrows insfillcol sortcol reversesortcol sortcoln reversesortcoln sortrow sortrown reversesortrow reversesortrown getcoleq getcoleqn getcolnoteq getcolany getcolbegin getcolnotany getcolnotbegin getcolge getcolgt getcolle getcollt getcolgen getcolgtn getcollen getcoltn getcolend getcolnotend getrowend getrownotend getcolin getcolnotin getcolinbegin getcolnotinbegin getcolinend getcolnotinend getrowin getrownotin getrowinbegin getrownotinbegin getrowinend getrownotinend	contained30syn keyword	htmlosFunctions	dbcreate dbadd dbedit dbdelete dbsearch dbsearchsort dbget dbgetsort dbstatus dbindex dbimport dbfill dbexport dbsort dbgetrec dbremove dbpurge dbfind dbfindsort dbunique dbcopy dbmove dbkill dbtransfer dbpoke dbsearchx dbgetx	contained31syn keyword	htmlosFunctions	syshtmlosname sysstartname sysfixfile fileinfo filelist fileindex domainname page browser regdomain username usernum getenv httpheader copy file ts row sysls syscp sysmv sysmd sysrd filepush filepushlink dirname	contained32syn keyword	htmlosFunctions	mail to address subject netmail netmailopen netmailclose mailfilelist netweb netwebresults webpush netsockopen netsockread netsockwrite netsockclose	contained33syn keyword	htmlosFunctions today time systime now yesterday tomorrow getday getmonth getyear getminute getweekday getweeknum getyearday getdate gettime getamorpm gethour addhours addminutes adddays timebetween timetill timefrom datetill datefrom mixedtimebetween mixeddatetill mixedtimetill mixedtimefrom mixeddatefrom nextdaybyweekfromdate nextdaybyweekfromtoday nextdaybymonthfromdate nextdaybymonthfromtoday nextdaybyyearfromdate nextdaybyyearfromtoday offsetdaybyweekfromdate offsetdaybyweekfromtoday offsetdaybymonthfromdate offsetdaybymonthfromtoday	contained34syn keyword	htmlosFunctions isprivate ispublic isfile isdir isblank iserror iserror iseven isodd istrue isfalse islogical istext istag isnumber isinteger isdate istableeq istableeqx istableeqn isfuture ispast istoday isweekday isweekend issamedate iseq isnoteq isge isle ismod10 isvalidstring	contained35syn keyword	htmlosFunctions celtof celtokel ftocel ftokel keltocel keltof cmtoin intocm fttom mtoft fttomile miletoft kmtomile miletokm mtoyd ydtom galtoltr ltrtogal ltrtoqt qttoltr gtooz oztog kgtolb lbtokg mttoton tontomt	contained36syn keyword	htmlosFunctions max min abs sign inverse square sqrt cube roundsig round ceiling roundup floor rounddown roundeven rounddowneven roundupeven roundodd roundupodd rounddownodd random factorial summand fibonacci remainder mod radians degrees cos sin tan cotan secant cosecant acos asin atan exp power power10 ln log10 log sinh cosh tanh	contained37syn keyword	htmlosFunctions xmldelete xmldeletex xmldeleteattr xmldeleteattrx xmledit xmleditx xmleditvalue xmleditvaluex xmleditattr xmleditattrx xmlinsertbefore xmlinsertbeforex smlinsertafter xmlinsertafterx xmlinsertattr xmlinsertattrx smlget xmlgetx xmlgetvalue xmlgetvaluex xmlgetattrvalue xmlgetattrvaluex xmlgetrec xmlgetrecx xmlgetrecattrvalue xmlgetrecattrvaluex xmlchopleftbefore xmlchopleftbeforex xmlchoprightbefore xmlchoprightbeforex xmlchopleftafter xmlchopleftafterx xmlchoprightafter xmlchoprightafterx xmllocatebefore xmllocatebeforex xmllocateafter xmllocateafterx	contained38 39" Type40syn keyword	htmlosType	int str dol flt dat grp	contained41 42" StorageClass43syn keyword	htmlosStorageClass	locals	contained44 45" Operator46syn match	htmlosOperator	"[-=+/\*!]"	contained47syn match	htmlosRelation	"[~]"	contained48syn match	htmlosRelation	"[=~][&!]"	contained49syn match	htmlosRelation	"[!=<>]="	contained50syn match	htmlosRelation	"[<>]"	contained51 52" Comment53syn region	htmlosComment	start="#" end="/#"	contained54 55" Conditional56syn keyword	htmlosConditional	if then /if to else elif	contained57syn keyword	htmlosConditional	and or nand nor xor not	contained58" Repeat59syn keyword	htmlosRepeat	while do /while for /for	contained60 61" Keyword62syn keyword	htmlosKeyword	name value step do rowname colname rownum	contained63 64" Repeat65syn keyword	htmlosLabel	case matched /case switch	contained66 67" Statement68syn keyword	htmlosStatement     break exit return continue	contained69 70" Identifier71syn match	htmlosIdentifier	"\h\w*[\.]*\w*"	contained72 73" Special identifier74syn match	htmlosSpecialIdentifier	"[\$@]"	contained75 76" Define77syn keyword	htmlosDefine	function overlay	contained78 79" Boolean80syn keyword	htmlosBoolean	true false	contained81 82" String83syn region	htmlosStringDouble	keepend matchgroup=None start=+"+ end=+"+ contained84syn region	htmlosStringSingle	keepend matchgroup=None start=+'+ end=+'+ contained85 86" Number87syn match htmlosNumber	"-\=\<\d\+\>"	contained88 89" Float90syn match htmlosFloat	"\(-\=\<\d+\|-\=\)\.\d\+\>"	contained91 92" Error93syn match htmlosError	"ERROR"	contained94 95" Parent96syn match     htmlosParent       "[({[\]})]"     contained97 98" Todo99syn keyword	htmlosTodo TODO Todo todo	contained100 101syn cluster	htmlosInside	contains=htmlosComment,htmlosFunctions,htmlosIdentifier,htmlosSpecialIdentifier,htmlosConditional,htmlosRepeat,htmlosLabel,htmlosStatement,htmlosOperator,htmlosRelation,htmlosStringSingle,htmlosStringDouble,htmlosNumber,htmlosFloat,htmlosError,htmlosKeyword,htmlosType,htmlosBoolean,htmlosParent102 103syn cluster	htmlosTop	contains=@htmlosInside,htmlosDefine,htmlosError,htmlosStorageClass104 105syn region	 htmlosRegion	keepend matchgroup=Delimiter start="<<" skip=+".\{-}?>.\{-}"\|'.\{-}?>.\{-}'\|/\*.\{-}?>.\{-}\*/+ end=">>" contains=@htmlosTop106syn region	 htmlosRegion	keepend matchgroup=Delimiter start="\[\[" skip=+".\{-}?>.\{-}"\|'.\{-}?>.\{-}'\|/\*.\{-}?>.\{-}\*/+ end="\]\]" contains=@htmlosTop107 108 109" sync110if exists("htmlos_minlines")111  exec "syn sync minlines=" . htmlos_minlines112else113  syn sync minlines=100114endif115 116" Define the default highlighting.117" Only when an item doesn't have highlighting yet118 119" The default methods for highlighting.  Can be overridden later120hi def link htmlosSpecialIdentifier	Operator121hi def link htmlosIdentifier	Identifier122hi def link htmlosStorageClass	StorageClass123hi def link htmlosComment	Comment124hi def link htmlosBoolean	Boolean125hi def link htmlosStringSingle	String126hi def link htmlosStringDouble	String127hi def link htmlosNumber	Number128hi def link htmlosFloat	Float129hi def link htmlosFunctions	Function130hi def link htmlosRepeat	Repeat131hi def link htmlosConditional	Conditional132hi def link htmlosLabel	Label133hi def link htmlosStatement	Statement134hi def link htmlosKeyword	Statement135hi def link htmlosType	Type136hi def link htmlosDefine	Define137hi def link htmlosParent	Delimiter138hi def link htmlosError	Error139hi def link htmlosTodo	Todo140hi def link htmlosOperator	Operator141hi def link htmlosRelation	Operator142 143let b:current_syntax = "htmlos"144 145if main_syntax == 'htmlos'146  unlet main_syntax147endif148 149" vim: ts=8 sw=2150 
codekingpro/portable-devtools · Team Ai