diff options
Diffstat (limited to '')
-rw-r--r-- | syntax/html.vim | 309 | ||||
-rw-r--r-- | syntax/htmlcheetah.vim | 28 | ||||
-rw-r--r-- | syntax/htmldjango.vim | 30 | ||||
-rw-r--r-- | syntax/htmlm4.vim | 35 | ||||
-rw-r--r-- | syntax/htmlos.vim | 153 |
5 files changed, 0 insertions, 555 deletions
diff --git a/syntax/html.vim b/syntax/html.vim index ade14dc5..e494e404 100644 --- a/syntax/html.vim +++ b/syntax/html.vim @@ -1,312 +1,3 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'vim') == -1 - -" Vim syntax file -" Language: HTML -" Maintainer: Jorge Maldonado Ventura <jorgesumle@freakspot.net> -" Previous Maintainer: Claudio Fleiner <claudio@fleiner.com> -" Repository: https://notabug.org/jorgesumle/vim-html-syntax -" Last Change: 2017 Jan 21 -" included patch from Jorge Maldonado Ventura - -" Please check :help html.vim for some comments and a description of the options - -" quit when a syntax file was already loaded -if !exists("main_syntax") - if exists("b:current_syntax") - finish - endif - let main_syntax = 'html' -endif - -let s:cpo_save = &cpo -set cpo&vim - -syntax spell toplevel - -syn case ignore - -" mark illegal characters -syn match htmlError "[<>&]" - - -" tags -syn region htmlString contained start=+"+ end=+"+ contains=htmlSpecialChar,javaScriptExpression,@htmlPreproc -syn region htmlString contained start=+'+ end=+'+ contains=htmlSpecialChar,javaScriptExpression,@htmlPreproc -syn match htmlValue contained "=[\t ]*[^'" \t>][^ \t>]*"hs=s+1 contains=javaScriptExpression,@htmlPreproc -syn region htmlEndTag start=+</+ end=+>+ contains=htmlTagN,htmlTagError -syn region htmlTag start=+<[^/]+ end=+>+ fold contains=htmlTagN,htmlString,htmlArg,htmlValue,htmlTagError,htmlEvent,htmlCssDefinition,@htmlPreproc,@htmlArgCluster -syn match htmlTagN contained +<\s*[-a-zA-Z0-9]\++hs=s+1 contains=htmlTagName,htmlSpecialTagName,@htmlTagNameCluster -syn match htmlTagN contained +</\s*[-a-zA-Z0-9]\++hs=s+2 contains=htmlTagName,htmlSpecialTagName,@htmlTagNameCluster -syn match htmlTagError contained "[^>]<"ms=s+1 - - -" tag names -syn keyword htmlTagName contained address applet area a base basefont -syn keyword htmlTagName contained big blockquote br caption center -syn keyword htmlTagName contained cite code dd dfn dir div dl dt font -syn keyword htmlTagName contained form hr html img -syn keyword htmlTagName contained input isindex kbd li link map menu -syn keyword htmlTagName contained meta ol option param pre p samp span -syn keyword htmlTagName contained select small strike sub sup -syn keyword htmlTagName contained table td textarea th tr tt ul var xmp -syn match htmlTagName contained "\<\(b\|i\|u\|h[1-6]\|em\|strong\|head\|body\|title\)\>" - -" new html 4.0 tags -syn keyword htmlTagName contained abbr acronym bdo button col label -syn keyword htmlTagName contained colgroup del fieldset iframe ins legend -syn keyword htmlTagName contained object optgroup q s tbody tfoot thead - -" new html 5 tags -syn keyword htmlTagName contained article aside audio bdi canvas data -syn keyword htmlTagName contained datalist details embed figcaption figure -syn keyword htmlTagName contained footer header hgroup keygen main mark -syn keyword htmlTagName contained menuitem meter nav output picture -syn keyword htmlTagName contained progress rb rp rt rtc ruby section -syn keyword htmlTagName contained slot source template time track video wbr - -" legal arg names -syn keyword htmlArg contained action -syn keyword htmlArg contained align alink alt archive background bgcolor -syn keyword htmlArg contained border bordercolor cellpadding -syn keyword htmlArg contained cellspacing checked class clear code codebase color -syn keyword htmlArg contained cols colspan content coords enctype face -syn keyword htmlArg contained gutter height hspace id -syn keyword htmlArg contained link lowsrc marginheight -syn keyword htmlArg contained marginwidth maxlength method name prompt -syn keyword htmlArg contained rel rev rows rowspan scrolling selected shape -syn keyword htmlArg contained size src start target text type url -syn keyword htmlArg contained usemap ismap valign value vlink vspace width wrap -syn match htmlArg contained "\<\(http-equiv\|href\|title\)="me=e-1 - -" Netscape extensions -syn keyword htmlTagName contained frame noframes frameset nobr blink -syn keyword htmlTagName contained layer ilayer nolayer spacer -syn keyword htmlArg contained frameborder noresize pagex pagey above below -syn keyword htmlArg contained left top visibility clip id noshade -syn match htmlArg contained "\<z-index\>" - -" Microsoft extensions -syn keyword htmlTagName contained marquee - -" html 4.0 arg names -syn match htmlArg contained "\<\(accept-charset\|label\)\>" -syn keyword htmlArg contained abbr accept accesskey axis char charoff charset -syn keyword htmlArg contained cite classid codetype compact data datetime -syn keyword htmlArg contained declare defer dir disabled for frame -syn keyword htmlArg contained headers hreflang lang language longdesc -syn keyword htmlArg contained multiple nohref nowrap object profile readonly -syn keyword htmlArg contained rules scheme scope span standby style -syn keyword htmlArg contained summary tabindex valuetype version - -" html 5 arg names -syn keyword htmlArg contained allowfullscreen async autocomplete autofocus -syn keyword htmlArg contained autoplay challenge contenteditable contextmenu -syn keyword htmlArg contained controls crossorigin default dirname download -syn keyword htmlArg contained draggable dropzone form formaction formenctype -syn keyword htmlArg contained formmethod formnovalidate formtarget hidden -syn keyword htmlArg contained high icon inputmode keytype kind list loop low -syn keyword htmlArg contained max min minlength muted nonce novalidate open -syn keyword htmlArg contained optimum pattern placeholder poster preload -syn keyword htmlArg contained radiogroup required reversed sandbox spellcheck -syn keyword htmlArg contained sizes srcset srcdoc srclang step title translate -syn keyword htmlArg contained typemustmatch - -" special characters -syn match htmlSpecialChar "&#\=[0-9A-Za-z]\{1,8};" - -" Comments (the real ones or the old netscape ones) -if exists("html_wrong_comments") - syn region htmlComment start=+<!--+ end=+--\s*>+ contains=@Spell -else - syn region htmlComment start=+<!+ end=+>+ contains=htmlCommentPart,htmlCommentError,@Spell - syn match htmlCommentError contained "[^><!]" - syn region htmlCommentPart contained start=+--+ end=+--\s*+ contains=@htmlPreProc,@Spell -endif -syn region htmlComment start=+<!DOCTYPE+ keepend end=+>+ - -" server-parsed commands -syn region htmlPreProc start=+<!--#+ end=+-->+ contains=htmlPreStmt,htmlPreError,htmlPreAttr -syn match htmlPreStmt contained "<!--#\(config\|echo\|exec\|fsize\|flastmod\|include\|printenv\|set\|if\|elif\|else\|endif\|geoguide\)\>" -syn match htmlPreError contained "<!--#\S*"ms=s+4 -syn match htmlPreAttr contained "\w\+=[^"]\S\+" contains=htmlPreProcAttrError,htmlPreProcAttrName -syn region htmlPreAttr contained start=+\w\+="+ skip=+\\\\\|\\"+ end=+"+ contains=htmlPreProcAttrName keepend -syn match htmlPreProcAttrError contained "\w\+="he=e-1 -syn match htmlPreProcAttrName contained "\(expr\|errmsg\|sizefmt\|timefmt\|var\|cgi\|cmd\|file\|virtual\|value\)="he=e-1 - -if !exists("html_no_rendering") - " rendering - syn cluster htmlTop contains=@Spell,htmlTag,htmlEndTag,htmlSpecialChar,htmlPreProc,htmlComment,htmlLink,javaScript,@htmlPreproc - - syn region htmlBold start="<b\>" end="</b>"me=e-4 contains=@htmlTop,htmlBoldUnderline,htmlBoldItalic - syn region htmlBold start="<strong\>" end="</strong>"me=e-9 contains=@htmlTop,htmlBoldUnderline,htmlBoldItalic - syn region htmlBoldUnderline contained start="<u\>" end="</u>"me=e-4 contains=@htmlTop,htmlBoldUnderlineItalic - syn region htmlBoldItalic contained start="<i\>" end="</i>"me=e-4 contains=@htmlTop,htmlBoldItalicUnderline - syn region htmlBoldItalic contained start="<em\>" end="</em>"me=e-5 contains=@htmlTop,htmlBoldItalicUnderline - syn region htmlBoldUnderlineItalic contained start="<i\>" end="</i>"me=e-4 contains=@htmlTop - syn region htmlBoldUnderlineItalic contained start="<em\>" end="</em>"me=e-5 contains=@htmlTop - syn region htmlBoldItalicUnderline contained start="<u\>" end="</u>"me=e-4 contains=@htmlTop,htmlBoldUnderlineItalic - - syn region htmlUnderline start="<u\>" end="</u>"me=e-4 contains=@htmlTop,htmlUnderlineBold,htmlUnderlineItalic - syn region htmlUnderlineBold contained start="<b\>" end="</b>"me=e-4 contains=@htmlTop,htmlUnderlineBoldItalic - syn region htmlUnderlineBold contained start="<strong\>" end="</strong>"me=e-9 contains=@htmlTop,htmlUnderlineBoldItalic - syn region htmlUnderlineItalic contained start="<i\>" end="</i>"me=e-4 contains=@htmlTop,htmlUnderlineItalicBold - syn region htmlUnderlineItalic contained start="<em\>" end="</em>"me=e-5 contains=@htmlTop,htmlUnderlineItalicBold - syn region htmlUnderlineItalicBold contained start="<b\>" end="</b>"me=e-4 contains=@htmlTop - syn region htmlUnderlineItalicBold contained start="<strong\>" end="</strong>"me=e-9 contains=@htmlTop - syn region htmlUnderlineBoldItalic contained start="<i\>" end="</i>"me=e-4 contains=@htmlTop - syn region htmlUnderlineBoldItalic contained start="<em\>" end="</em>"me=e-5 contains=@htmlTop - - syn region htmlItalic start="<i\>" end="</i>"me=e-4 contains=@htmlTop,htmlItalicBold,htmlItalicUnderline - syn region htmlItalic start="<em\>" end="</em>"me=e-5 contains=@htmlTop - syn region htmlItalicBold contained start="<b\>" end="</b>"me=e-4 contains=@htmlTop,htmlItalicBoldUnderline - syn region htmlItalicBold contained start="<strong\>" end="</strong>"me=e-9 contains=@htmlTop,htmlItalicBoldUnderline - syn region htmlItalicBoldUnderline contained start="<u\>" end="</u>"me=e-4 contains=@htmlTop - syn region htmlItalicUnderline contained start="<u\>" end="</u>"me=e-4 contains=@htmlTop,htmlItalicUnderlineBold - syn region htmlItalicUnderlineBold contained start="<b\>" end="</b>"me=e-4 contains=@htmlTop - syn region htmlItalicUnderlineBold contained start="<strong\>" end="</strong>"me=e-9 contains=@htmlTop - - syn match htmlLeadingSpace "^\s\+" contained - syn region htmlLink start="<a\>\_[^>]*\<href\>" end="</a>"me=e-4 contains=@Spell,htmlTag,htmlEndTag,htmlSpecialChar,htmlPreProc,htmlComment,htmlLeadingSpace,javaScript,@htmlPreproc - syn region htmlH1 start="<h1\>" end="</h1>"me=e-5 contains=@htmlTop - syn region htmlH2 start="<h2\>" end="</h2>"me=e-5 contains=@htmlTop - syn region htmlH3 start="<h3\>" end="</h3>"me=e-5 contains=@htmlTop - syn region htmlH4 start="<h4\>" end="</h4>"me=e-5 contains=@htmlTop - syn region htmlH5 start="<h5\>" end="</h5>"me=e-5 contains=@htmlTop - syn region htmlH6 start="<h6\>" end="</h6>"me=e-5 contains=@htmlTop - syn region htmlHead start="<head\>" end="</head>"me=e-7 end="<body\>"me=e-5 end="<h[1-6]\>"me=e-3 contains=htmlTag,htmlEndTag,htmlSpecialChar,htmlPreProc,htmlComment,htmlLink,htmlTitle,javaScript,cssStyle,@htmlPreproc - syn region htmlTitle start="<title\>" end="</title>"me=e-8 contains=htmlTag,htmlEndTag,htmlSpecialChar,htmlPreProc,htmlComment,javaScript,@htmlPreproc -endif - -syn keyword htmlTagName contained noscript -syn keyword htmlSpecialTagName contained script style -if main_syntax != 'java' || exists("java_javascript") - " JAVA SCRIPT - syn include @htmlJavaScript syntax/javascript.vim - unlet b:current_syntax - syn region javaScript start=+<script\_[^>]*>+ keepend end=+</script\_[^>]*>+me=s-1 contains=@htmlJavaScript,htmlCssStyleComment,htmlScriptTag,@htmlPreproc - syn region htmlScriptTag contained start=+<script+ end=+>+ fold contains=htmlTagN,htmlString,htmlArg,htmlValue,htmlTagError,htmlEvent - hi def link htmlScriptTag htmlTag - - " html events (i.e. arguments that include javascript commands) - if exists("html_extended_events") - syn region htmlEvent contained start=+\<on\a\+\s*=[\t ]*'+ end=+'+ contains=htmlEventSQ - syn region htmlEvent contained start=+\<on\a\+\s*=[\t ]*"+ end=+"+ contains=htmlEventDQ - else - syn region htmlEvent contained start=+\<on\a\+\s*=[\t ]*'+ end=+'+ keepend contains=htmlEventSQ - syn region htmlEvent contained start=+\<on\a\+\s*=[\t ]*"+ end=+"+ keepend contains=htmlEventDQ - endif - syn region htmlEventSQ contained start=+'+ms=s+1 end=+'+me=s-1 contains=@htmlJavaScript - syn region htmlEventDQ contained start=+"+ms=s+1 end=+"+me=s-1 contains=@htmlJavaScript - hi def link htmlEventSQ htmlEvent - hi def link htmlEventDQ htmlEvent - - " a javascript expression is used as an arg value - syn region javaScriptExpression contained start=+&{+ keepend end=+};+ contains=@htmlJavaScript,@htmlPreproc -endif - -if main_syntax != 'java' || exists("java_vb") - " VB SCRIPT - syn include @htmlVbScript syntax/vb.vim - unlet b:current_syntax - syn region javaScript start=+<script \_[^>]*language *=\_[^>]*vbscript\_[^>]*>+ keepend end=+</script\_[^>]*>+me=s-1 contains=@htmlVbScript,htmlCssStyleComment,htmlScriptTag,@htmlPreproc -endif - -syn cluster htmlJavaScript add=@htmlPreproc - -if main_syntax != 'java' || exists("java_css") - " embedded style sheets - syn keyword htmlArg contained media - syn include @htmlCss syntax/css.vim - unlet b:current_syntax - syn region cssStyle start=+<style+ keepend end=+</style>+ contains=@htmlCss,htmlTag,htmlEndTag,htmlCssStyleComment,@htmlPreproc - syn match htmlCssStyleComment contained "\(<!--\|-->\)" - syn region htmlCssDefinition matchgroup=htmlArg start='style="' keepend matchgroup=htmlString end='"' contains=css.*Attr,css.*Prop,cssComment,cssLength,cssColor,cssURL,cssImportant,cssError,cssString,@htmlPreproc - hi def link htmlStyleArg htmlString -endif - -if main_syntax == "html" - " synchronizing (does not always work if a comment includes legal - " html tags, but doing it right would mean to always start - " at the first line, which is too slow) - syn sync match htmlHighlight groupthere NONE "<[/a-zA-Z]" - syn sync match htmlHighlight groupthere javaScript "<script" - syn sync match htmlHighlightSkip "^.*['\"].*$" - syn sync minlines=10 -endif - -" The default highlighting. -hi def link htmlTag Function -hi def link htmlEndTag Identifier -hi def link htmlArg Type -hi def link htmlTagName htmlStatement -hi def link htmlSpecialTagName Exception -hi def link htmlValue String -hi def link htmlSpecialChar Special - -if !exists("html_no_rendering") - hi def link htmlH1 Title - hi def link htmlH2 htmlH1 - hi def link htmlH3 htmlH2 - hi def link htmlH4 htmlH3 - hi def link htmlH5 htmlH4 - hi def link htmlH6 htmlH5 - hi def link htmlHead PreProc - hi def link htmlTitle Title - hi def link htmlBoldItalicUnderline htmlBoldUnderlineItalic - hi def link htmlUnderlineBold htmlBoldUnderline - hi def link htmlUnderlineItalicBold htmlBoldUnderlineItalic - hi def link htmlUnderlineBoldItalic htmlBoldUnderlineItalic - hi def link htmlItalicUnderline htmlUnderlineItalic - hi def link htmlItalicBold htmlBoldItalic - hi def link htmlItalicBoldUnderline htmlBoldUnderlineItalic - hi def link htmlItalicUnderlineBold htmlBoldUnderlineItalic - hi def link htmlLink Underlined - hi def link htmlLeadingSpace None - if !exists("html_my_rendering") - hi def htmlBold term=bold cterm=bold gui=bold - hi def htmlBoldUnderline term=bold,underline cterm=bold,underline gui=bold,underline - hi def htmlBoldItalic term=bold,italic cterm=bold,italic gui=bold,italic - hi def htmlBoldUnderlineItalic term=bold,italic,underline cterm=bold,italic,underline gui=bold,italic,underline - hi def htmlUnderline term=underline cterm=underline gui=underline - hi def htmlUnderlineItalic term=italic,underline cterm=italic,underline gui=italic,underline - hi def htmlItalic term=italic cterm=italic gui=italic - endif -endif - -hi def link htmlPreStmt PreProc -hi def link htmlPreError Error -hi def link htmlPreProc PreProc -hi def link htmlPreAttr String -hi def link htmlPreProcAttrName PreProc -hi def link htmlPreProcAttrError Error -hi def link htmlSpecial Special -hi def link htmlSpecialChar Special -hi def link htmlString String -hi def link htmlStatement Statement -hi def link htmlComment Comment -hi def link htmlCommentPart Comment -hi def link htmlValue String -hi def link htmlCommentError htmlError -hi def link htmlTagError htmlError -hi def link htmlEvent javaScript -hi def link htmlError Error - -hi def link javaScript Special -hi def link javaScriptExpression javaScript -hi def link htmlCssStyleComment Comment -hi def link htmlCssDefinition Special - -let b:current_syntax = "html" - -if main_syntax == 'html' - unlet main_syntax -endif - -let &cpo = s:cpo_save -unlet s:cpo_save -" vim: ts=8 - -endif if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'html5') == -1 " Vim syntax file diff --git a/syntax/htmlcheetah.vim b/syntax/htmlcheetah.vim deleted file mode 100644 index e5e6e169..00000000 --- a/syntax/htmlcheetah.vim +++ /dev/null @@ -1,28 +0,0 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'vim') == -1 - -" Vim syntax file -" Language: HTML with Cheetah tags -" Maintainer: Max Ischenko <mfi@ukr.net> -" Last Change: 2003-05-11 - -" quit when a syntax file was already loaded -if exists("b:current_syntax") - finish -endif - -if !exists("main_syntax") - let main_syntax = 'html' -endif - -runtime! syntax/cheetah.vim -runtime! syntax/html.vim -unlet b:current_syntax - -syntax cluster htmlPreproc add=cheetahPlaceHolder -syntax cluster htmlString add=cheetahPlaceHolder - -let b:current_syntax = "htmlcheetah" - - - -endif diff --git a/syntax/htmldjango.vim b/syntax/htmldjango.vim deleted file mode 100644 index aeef4e2e..00000000 --- a/syntax/htmldjango.vim +++ /dev/null @@ -1,30 +0,0 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'vim') == -1 - -" Vim syntax file -" Language: Django HTML template -" Maintainer: Dave Hodder <dmh@dmh.org.uk> -" Last Change: 2014 Jul 13 - -" quit when a syntax file was already loaded -if exists("b:current_syntax") - finish -endif - -if !exists("main_syntax") - let main_syntax = 'html' -endif - -runtime! syntax/django.vim -runtime! syntax/html.vim -unlet b:current_syntax - -syn cluster djangoBlocks add=djangoTagBlock,djangoVarBlock,djangoComment,djangoComBlock - -syn region djangoTagBlock start="{%" end="%}" contains=djangoStatement,djangoFilter,djangoArgument,djangoTagError display containedin=ALLBUT,@djangoBlocks -syn region djangoVarBlock start="{{" end="}}" contains=djangoFilter,djangoArgument,djangoVarError display containedin=ALLBUT,@djangoBlocks -syn region djangoComment start="{%\s*comment\(\s\+.\{-}\)\?%}" end="{%\s*endcomment\s*%}" contains=djangoTodo containedin=ALLBUT,@djangoBlocks -syn region djangoComBlock start="{#" end="#}" contains=djangoTodo containedin=ALLBUT,@djangoBlocks - -let b:current_syntax = "htmldjango" - -endif diff --git a/syntax/htmlm4.vim b/syntax/htmlm4.vim deleted file mode 100644 index 7c67505e..00000000 --- a/syntax/htmlm4.vim +++ /dev/null @@ -1,35 +0,0 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'vim') == -1 - -" Vim syntax file -" Language: HTML and M4 -" Maintainer: Claudio Fleiner <claudio@fleiner.com> -" URL: http://www.fleiner.com/vim/syntax/htmlm4.vim -" Last Change: 2001 Apr 30 - -" quit when a syntax file was already loaded -if exists("b:current_syntax") - finish -endif - -" we define it here so that included files can test for it -if !exists("main_syntax") - let main_syntax='htmlm4' -endif - -runtime! syntax/html.vim -unlet b:current_syntax -syn case match - -runtime! syntax/m4.vim - -unlet b:current_syntax -syn cluster htmlPreproc add=@m4Top -syn cluster m4StringContents add=htmlTag,htmlEndTag - -let b:current_syntax = "htmlm4" - -if main_syntax == 'htmlm4' - unlet main_syntax -endif - -endif diff --git a/syntax/htmlos.vim b/syntax/htmlos.vim deleted file mode 100644 index 50ea7d3a..00000000 --- a/syntax/htmlos.vim +++ /dev/null @@ -1,153 +0,0 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'vim') == -1 - -" Vim syntax file -" Language: HTML/OS by Aestiva -" Maintainer: Jason Rust <jrust@westmont.edu> -" URL: http://www.rustyparts.com/vim/syntax/htmlos.vim -" Info: http://www.rustyparts.com/scripts.php -" Last Change: 2003 May 11 -" - -" quit when a syntax file was already loaded -if exists("b:current_syntax") - finish -endif - -if !exists("main_syntax") - let main_syntax = 'htmlos' -endif - -runtime! syntax/html.vim -unlet b:current_syntax - -syn cluster htmlPreproc add=htmlosRegion - -syn case ignore - -" Function names -syn keyword htmlosFunctions expand sleep getlink version system ascii getascii syslock sysunlock cr lf clean postprep listtorow split listtocol coltolist rowtolist tabletolist contained -syn 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 contained -syn keyword htmlosFunctions goto exitgoto contained -syn 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 contained -syn 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 contained -syn 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 contained -syn keyword htmlosFunctions mail to address subject netmail netmailopen netmailclose mailfilelist netweb netwebresults webpush netsockopen netsockread netsockwrite netsockclose contained -syn 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 contained -syn 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 contained -syn 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 contained -syn 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 contained -syn 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 contained - -" Type -syn keyword htmlosType int str dol flt dat grp contained - -" StorageClass -syn keyword htmlosStorageClass locals contained - -" Operator -syn match htmlosOperator "[-=+/\*!]" contained -syn match htmlosRelation "[~]" contained -syn match htmlosRelation "[=~][&!]" contained -syn match htmlosRelation "[!=<>]=" contained -syn match htmlosRelation "[<>]" contained - -" Comment -syn region htmlosComment start="#" end="/#" contained - -" Conditional -syn keyword htmlosConditional if then /if to else elif contained -syn keyword htmlosConditional and or nand nor xor not contained -" Repeat -syn keyword htmlosRepeat while do /while for /for contained - -" Keyword -syn keyword htmlosKeyword name value step do rowname colname rownum contained - -" Repeat -syn keyword htmlosLabel case matched /case switch contained - -" Statement -syn keyword htmlosStatement break exit return continue contained - -" Identifier -syn match htmlosIdentifier "\h\w*[\.]*\w*" contained - -" Special identifier -syn match htmlosSpecialIdentifier "[\$@]" contained - -" Define -syn keyword htmlosDefine function overlay contained - -" Boolean -syn keyword htmlosBoolean true false contained - -" String -syn region htmlosStringDouble keepend matchgroup=None start=+"+ end=+"+ contained -syn region htmlosStringSingle keepend matchgroup=None start=+'+ end=+'+ contained - -" Number -syn match htmlosNumber "-\=\<\d\+\>" contained - -" Float -syn match htmlosFloat "\(-\=\<\d+\|-\=\)\.\d\+\>" contained - -" Error -syn match htmlosError "ERROR" contained - -" Parent -syn match htmlosParent "[({[\]})]" contained - -" Todo -syn keyword htmlosTodo TODO Todo todo contained - -syn cluster htmlosInside contains=htmlosComment,htmlosFunctions,htmlosIdentifier,htmlosSpecialIdentifier,htmlosConditional,htmlosRepeat,htmlosLabel,htmlosStatement,htmlosOperator,htmlosRelation,htmlosStringSingle,htmlosStringDouble,htmlosNumber,htmlosFloat,htmlosError,htmlosKeyword,htmlosType,htmlosBoolean,htmlosParent - -syn cluster htmlosTop contains=@htmlosInside,htmlosDefine,htmlosError,htmlosStorageClass - -syn region htmlosRegion keepend matchgroup=Delimiter start="<<" skip=+".\{-}?>.\{-}"\|'.\{-}?>.\{-}'\|/\*.\{-}?>.\{-}\*/+ end=">>" contains=@htmlosTop -syn region htmlosRegion keepend matchgroup=Delimiter start="\[\[" skip=+".\{-}?>.\{-}"\|'.\{-}?>.\{-}'\|/\*.\{-}?>.\{-}\*/+ end="\]\]" contains=@htmlosTop - - -" sync -if exists("htmlos_minlines") - exec "syn sync minlines=" . htmlos_minlines -else - syn sync minlines=100 -endif - -" Define the default highlighting. -" Only when an item doesn't have highlighting yet - -" The default methods for highlighting. Can be overridden later -hi def link htmlosSpecialIdentifier Operator -hi def link htmlosIdentifier Identifier -hi def link htmlosStorageClass StorageClass -hi def link htmlosComment Comment -hi def link htmlosBoolean Boolean -hi def link htmlosStringSingle String -hi def link htmlosStringDouble String -hi def link htmlosNumber Number -hi def link htmlosFloat Float -hi def link htmlosFunctions Function -hi def link htmlosRepeat Repeat -hi def link htmlosConditional Conditional -hi def link htmlosLabel Label -hi def link htmlosStatement Statement -hi def link htmlosKeyword Statement -hi def link htmlosType Type -hi def link htmlosDefine Define -hi def link htmlosParent Delimiter -hi def link htmlosError Error -hi def link htmlosTodo Todo -hi def link htmlosOperator Operator -hi def link htmlosRelation Operator - -let b:current_syntax = "htmlos" - -if main_syntax == 'htmlos' - unlet main_syntax -endif - -" vim: ts=8 sw=2 - -endif |