dp.sh.Brushes.ColdFusion=function(){this.CssClass="dp-coldfusion";this.Style='.dp-coldfusion { font: 13px "Courier New", Courier, monospace; }.dp-coldfusion .tag, .dp-coldfusion .tag-name { color: #990033; }.dp-coldfusion .attribute { color: #990033; }.dp-coldfusion .attribute-value { color: #0000FF; }.dp-coldfusion .cfcomments { background-color: #FFFF99; color: #000000; }.dp-coldfusion .cfscriptcomments { color: #999999; }.dp-coldfusion .keywords { color: #0000FF; }.dp-coldfusion .mgkeywords { color: #CC9900; }.dp-coldfusion .numbers { color: #ff0000; }.dp-coldfusion .strings { color: green; }';this.mgKeywords="setvalue getvalue addresult viewcollection viewstate";this.keywords="var eq neq gt gte lt lte not and or true false abs acos addsoaprequestheader addsoapresponseheader arrayappend arrayavg arrayclear arraydeleteat arrayinsertat arrayisempty arraylen arraymax arraymin arraynew arrayprepend arrayresize arrayset arraysort arraysum arrayswap arraytolist asc asin atn binarydecode binaryencode bitand bitmaskclear bitmaskread bitmaskset bitnot bitor bitshln bitshrn bitxor ceiling charsetdecode charsetencode chr cjustify compare comparenocase cos createdate createdatetime createobject createobject createobject createobject createobject createodbcdate createodbcdatetime createodbctime createtime createtimespan createuuid dateadd datecompare dateconvert datediff dateformat datepart day dayofweek dayofweekasstring dayofyear daysinmonth daysinyear de decimalformat decrementvalue decrypt decryptbinary deleteclientvariable directoryexists dollarformat duplicate encrypt encryptbinary evaluate exp expandpath fileexists find findnocase findoneof firstdayofmonth fix formatbasen generatesecretkey getauthuser getbasetagdata getbasetaglist getbasetemplatepath getclientvariableslist getcontextroot getcurrenttemplatepath getdirectoryfrompath getencoding getexception getfilefrompath getfunctionlist getgatewayhelper gethttprequestdata gethttptimestring getk2serverdoccount getk2serverdoccountlimit getlocale getlocaledisplayname getlocalhostip getmetadata getmetricdata getpagecontext getprofilesections getprofilestring getsoaprequest getsoaprequestheader getsoapresponse getsoapresponseheader gettempdirectory gettempfile gettemplatepath gettickcount gettimezoneinfo gettoken hash hour htmlcodeformat htmleditformat iif incrementvalue inputbasen insert int isarray isbinary isboolean iscustomfunction isdate isdebugmode isdefined isk2serverabroker isk2serverdoccountexceeded isk2serveronline isleapyear islocalhost isnumeric isnumericdate isobject isquery issimplevalue issoaprequest isstruct isuserinrole isvalid isvalid isvalid iswddx isxml isxmlattribute isxmldoc isxmlelem isxmlnode isxmlroot javacast jsstringformat lcase left len listappend listchangedelims listcontains listcontainsnocase listdeleteat listfind listfindnocase listfirst listgetat listinsertat listlast listlen listprepend listqualify listrest listsetat listsort listtoarray listvaluecount listvaluecountnocase ljustify log log10 lscurrencyformat lsdateformat lseurocurrencyformat lsiscurrency lsisdate lsisnumeric lsnumberformat lsparsecurrency lsparsedatetime lsparseeurocurrency lsparsenumber lstimeformat ltrim max mid min minute month monthasstring now numberformat paragraphformat parameterexists parsedatetime pi preservesinglequotes quarter queryaddcolumn queryaddrow querynew querysetcell quotedvaluelist rand randomize randrange refind refindnocase releasecomobject removechars repeatstring replace replacelist replacenocase rereplace rereplacenocase reverse right rjustify round rtrim second sendgatewaymessage setencoding setlocale setprofilestring setvariable sgn sin spanexcluding spanincluding sqr stripcr structappend structclear structcopy structcount structdelete structfind structfindkey structfindvalue structget structinsert structisempty structkeyarray structkeyexists structkeylist structnew structsort structupdate tan timeformat tobase64 tobinary toscript tostring trim ucase urldecode urlencodedformat urlsessionformat val valuelist week wrap writeoutput xmlchildpos xmlelemnew xmlformat xmlgetnodetype xmlnew xmlparse xmlsearch xmltransform xmlvalidate year yesnoformat";this.stringMatches=new Array();this.attributeMatches=new Array()};dp.sh.Brushes.ColdFusion.prototype=new dp.sh.Highlighter();dp.sh.Brushes.ColdFusion.Aliases=["coldfusion","cf"];dp.sh.Brushes.ColdFusion.prototype.ProcessRegexList=function(){function b(f,e){f[f.length]=e}function d(g,f){for(var e=0;e<g.length;e++){if(g[e]==f){return e}}return -1}var a=null;var c=null;this.GetMatches(new RegExp("\\b(\\d+)","gm"),"numbers");this.GetMatches(new RegExp(this.GetKeywords(this.mgKeywords),"igm"),"mgkeywords");this.GetMatches(dp.sh.RegexLib.SingleLineCComments,"cfscriptcomments");this.GetMatches(dp.sh.RegexLib.MultiLineCComments,"cfscriptcomments");this.GetMatches(new RegExp("(&lt;|<)!---[\\s\\S]*?---(&gt;|>)","gm"),"cfcomments");c=new RegExp("(cfset\\s*)?([:\\w-.]+)\\s*=\\s*(\".*?\"|'.*?')*","gm");while((a=c.exec(this.code))!=null){if(a[1]!=undefined&&a[1]!=""){continue}if(a[3]!=undefined&&a[3]!=""&&a[3]!='""'&&a[3]!="''"){b(this.matches,new dp.sh.Match(a[2],a.index,"attribute"));b(this.matches,new dp.sh.Match(a[3],a.index+a[0].indexOf(a[3]),"attribute-value"));b(this.stringMatches,a[3]);b(this.attributeMatches,a[2])}}this.GetMatches(new RegExp("(&lt;|<)/*\\?*(?!\\!)|/*\\?*(&gt;|>)","gm"),"tag");c=new RegExp("(?:&lt;|<)/*\\?*\\s*([:\\w-.]+)","gm");while((a=c.exec(this.code))!=null){b(this.matches,new dp.sh.Match(a[1],a.index+a[0].indexOf(a[1]),"tag-name"))}c=new RegExp(this.GetKeywords(this.keywords),"igm");while((a=c.exec(this.code))!=null){if(d(this.attributeMatches,a[0])==-1){b(this.matches,new dp.sh.Match(a[0],a.index,"keywords"))}}while((a=dp.sh.RegexLib.DoubleQuotedString.exec(this.code))!=null){if(d(this.stringMatches,a[0])==-1){b(this.matches,new dp.sh.Match(a[0],a.index,"strings"))}}while((a=dp.sh.RegexLib.SingleQuotedString.exec(this.code))!=null){if(d(this.stringMatches,a[0])==-1){b(this.matches,new dp.sh.Match(a[0],a.index,"strings"))}}};
