annotate runtime/syntax/cf.vim @ 228:d97518d6b325 v7.0063

updated for version 7.0063
author vimboss
date Tue, 22 Mar 2005 23:06:55 +0000
parents 3fc0f57ecb91
children 52e76e2b5b65
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: Cold Fusion
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Jeff Lanzarotta (jefflanzarotta@yahoo.com)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " URL: http://lanzarotta.tripod.com/vim/syntax/cf.vim.zip
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " Last Change: October 15, 2001
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " Usage: Since Cold Fusion has its own version of html comments,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " make sure that you put
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " 'let html_wrong_comments=1' in your _vimrc file.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 " For version 5.x, clear all syntax items.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 " For version 6.x, quit when a syntax file was already loaded.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 " Use all the stuff from the original html syntax file.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 source <sfile>:p:h/html.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 runtime! syntax/html.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 " Tag names.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn keyword cfTagName contained cfabort cfapplet cfapplication cfassociate
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn keyword cfTagName contained cfauthenticate cfbreak cfcache cfcol
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn keyword cfTagName contained cfcollection cfcontent cfcookie cfdirectory
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn keyword cfTagName contained cferror cfexit cffile cfform cfftp cfgrid
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn keyword cfTagName contained cfgridcolumn cfgridrow cfgridupdate cfheader
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn keyword cfTagName contained cfhtmlhead cfhttp cfhttpparam
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn keyword cfTagName contained cfif cfelseif cfelse
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn keyword cfTagName contained cfinclude cfindex cfinput cfinsert
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn keyword cfTagName contained cfldap cflocation cflock cfloop cfmail
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn keyword cfTagName contained cfmodule cfobject cfoutput cfparam cfpop
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn keyword cfTagName contained cfprocparam cfprocresult cfquery cfregistry
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn keyword cfTagName contained cfreport cfschedule cfscript cfsearch cfselect
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn keyword cfTagName contained cfset cfsetting cfslider cfstoredproc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn keyword cfTagName contained cfswitch cfcase cfdefaultcase
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn keyword cfTagName contained cftable cftextinput cfthrow cftransaction
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn keyword cfTagName contained cftree cftreeitem
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn keyword cfTagName contained cftry cfcatch
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 syn keyword cfTagName contained cfupdate cfwddx
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 " Legal arguments.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn keyword cfArg contained accept action addnewline addtoken agentname align
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 syn keyword cfArg contained appendkey applicationtimeout attachmentpath
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syn keyword cfArg contained attributecollection attributes basetag bgcolor
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 syn keyword cfArg contained blockfactor body bold border branch cachedafter
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 syn keyword cfArg contained cachedwithin cc cfsqltype checked class clientmanagement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 syn keyword cfArg contained clientstorage colheaderalign colheaderbold colheaderfont
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 syn keyword cfArg contained colheaderfontsize colheaderitalic colheaders collection
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 syn keyword cfArg contained colspacing columns completepath connection context
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 syn keyword cfArg contained criteria custom1 custom2 data dataalign datacollection
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 syn keyword cfArg contained datasource dbname dbserver dbtype dbvarname debug default
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 syn keyword cfArg contained delete deletebutton deletefile delimiter destination detail
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 syn keyword cfArg contained directory display dn domain enablecab enablecfoutputonly
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 syn keyword cfArg contained enctype enddate endtime entry errorcode expand expires
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 syn keyword cfArg contained expireurl expression extendedinfo extensions external
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 syn keyword cfArg contained file filefield filter font fontsize formfields formula
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 syn keyword cfArg contained from grid griddataalign gridlines groovecolor group header
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 syn keyword cfArg contained headeralign headerbold headerfont headerfontsize headeritalic
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 syn keyword cfArg contained headerlines height highlighthref href hrefkey hscroll hspace
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 syn keyword cfArg contained htmltable img imgopen imgstyle index input insert insertbutton
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 syn keyword cfArg contained interval isolation italic key keyonly label language mailerid
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 syn keyword cfArg contained mailto maxlength maxrows message messagenumber method
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 syn keyword cfArg contained mimeattach mode multiple name namecomplict newdirectory
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 syn keyword cfArg contained notsupported null numberformat onerror onsubmit onvalidate
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 syn keyword cfArg contained operation orderby output parrent passthrough password path
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 syn keyword cfArg contained picturebar port procedure protocol provider providerdsn
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 syn keyword cfArg contained proxybypass proxyserver publish query queryasroot range
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 syn keyword cfArg contained recurse refreshlabel report requesttimeout required reset
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 syn keyword cfArg contained resoleurl resultset retrycount returncode rowheaderalign
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 syn keyword cfArg contained rowheaderbold rowheaderfont rowheaderfontsize rowheaderitalic
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 syn keyword cfArg contained rowheaders rowheaderwidth rowheight scale scope secure
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 syn keyword cfArg contained securitycontext select selectcolor selected selectmode server
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 syn keyword cfArg contained sessionmanagement sessiontimeout setclientcookies setcookie
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 syn keyword cfArg contained showdebugoutput showerror size sort sortascendingbutton
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 syn keyword cfArg contained sortdescendingbutton source sql start startdate startrow starttime
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 syn keyword cfArg contained step stoponerror subject tablename tableowner tablequalifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 syn keyword cfArg contained target task template text textcolor textqualifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 syn keyword cfArg contained throwonfailure throwontimeout timeout title to toplevelvariable
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 syn keyword cfArg contained type url urlpath username usetimezoneinfo validate value
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 syn keyword cfArg contained variable vscroll vspace width
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 " Cold Fusion Functions.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 syn keyword cfFunctionName contained Abs ArrayAppend ArrayAvg ArrayClear ArrayDeleteAt
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 syn keyword cfFunctionName contained ArrayInsertAt ArrayIsEmpty ArrayLen ArrayMax
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 syn keyword cfFunctionName contained ArrayMin ArrayNew ArrayPrepend ArrayResize ArraySet
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 syn keyword cfFunctionName contained ArraySort ArraySum ArraySwap ArrayToList Asc Atn
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 syn keyword cfFunctionName contained BitAnd BitMaskClear BitMaskRead BitMaskSet BitNot
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 syn keyword cfFunctionName contained BitOr BitSHLN BitSHRN BitXor CJustify Ceiling Chr
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 syn keyword cfFunctionName contained Compare CompareNoCase Cos CreateDate CreateDateTime
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 syn keyword cfFunctionName contained CreateODBCDate CreateODBCDateTime CreateODBCTime
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 syn keyword cfFunctionName contained CreateTime CreateTimeSpan DE DateAdd DateCompare DateDiff
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 syn keyword cfFunctionName contained DateFormat DatePart Day DayOfWeek DayOfWeekAsString
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 syn keyword cfFunctionName contained DayOfYear DaysInMonth DaysInYear DecimalFormat DecrementValue
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 syn keyword cfFunctionName contained Decrypt DeleteClientVariable DirectoryExists DollarFormat
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 syn keyword cfFunctionName contained Encrypt Evaluate Exp ExpandPath FileExists Find FindNoCase
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 syn keyword cfFunctionName contained FindOneOf FirstDayOfMonth Fix FormatBaseN GetBaseTagData
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 syn keyword cfFunctionName contained GetBaseTagList GetClientVariablesList GetDirectoryFromPath
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102 syn keyword cfFunctionName contained GetFileFromPath GetLocale GetTempDirectory GetTempFile
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103 syn keyword cfFunctionName contained GetTemplatePath GetTickCount GetToken HTMLCodeFormat
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104 syn keyword cfFunctionName contained HTMLEditFormat Hour IIf IncrementValue InputBaseN Insert
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105 syn keyword cfFunctionName contained Int IsArray IsAuthenticated IsAuthorized IsBoolean IsDate
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 syn keyword cfFunctionName contained IsDebugMode IsDefined IsLeapYear IsNumeric IsNumericDate
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107 syn keyword cfFunctionName contained IsQuery IsSimpleValue IsStruct LCase LJustify LSCurrencyFormat
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108 syn keyword cfFunctionName contained LSDateFormat LSIsCurrency LSIsDate LSIsNumeric LSNumberFormat
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 syn keyword cfFunctionName contained LSParseCurrency LSParseDateTime LSParseNumber LSTimeFormat
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 syn keyword cfFunctionName contained LTrim Left Len ListAppend ListChangeDelims ListContains
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 syn keyword cfFunctionName contained ListContainsNoCase ListDeleteAt ListFind ListFindNoCase ListFirst
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 syn keyword cfFunctionName contained ListGetAt ListInsertAt ListLast ListLen ListPrepend ListRest
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113 syn keyword cfFunctionName contained ListSetAt ListToArray Log Log10 Max Mid Min Minute Month
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114 syn keyword cfFunctionName contained MonthAsString Now NumberFormat ParagraphFormat ParameterExists
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115 syn keyword cfFunctionName contained ParseDateTime Pi PreserveSingleQuotes Quarter QueryAddRow
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116 syn keyword cfFunctionName contained QueryNew QuerySetCell QuotedValueList REFind REFindNoCase
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117 syn keyword cfFunctionName contained REReplace REReplaceNoCase RJustify RTrim Rand RandRange
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118 syn keyword cfFunctionName contained Randomize RemoveChars RepeatString Replace ReplaceList
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119 syn keyword cfFunctionName contained ReplaceNoCase Reverse Right Round Second SetLocale SetVariable
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120 syn keyword cfFunctionName contained Sgn Sin SpanExcluding SpanIncluding Sqr StripCR StructClear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121 syn keyword cfFunctionName contained StructCopy StructCount StructDelete StructFind StructInsert
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122 syn keyword cfFunctionName contained StructIsEmpty StructKeyExists StructNew StructUpdate Tan
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123 syn keyword cfFunctionName contained TimeFormat Trim UCase URLEncodedFormat Val ValueList Week
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
124 syn keyword cfFunctionName contained WriteOutput Year YesNoFormat
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126 syn cluster htmlTagNameCluster add=cfTagName
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127 syn cluster htmlArgCluster add=cfArg,cfFunctionName
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
129 syn region cfFunctionRegion start='#' end='#' contains=cfFunctionName
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132 " For version 5.x and earlier, only when not done already.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133 " For version 5.8 and later, only when and item doesn't have highlighting yet.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
134 if version >= 508 || !exists("did_cf_syn_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
135 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
136 let did_cf_syn_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
137 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
138 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
139 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
140 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
141
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
142 HiLink cfTagName Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
143 HiLink cfArg Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
144 HiLink cfFunctionName Function
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
145
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
146 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
147 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
148
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
149 let b:current_syntax = "cf"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
150
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
151 " vim: ts=8 sw=2