1 | editAreaLoader.load_syntax["coldfusion"] = { |
---|
2 | 'DISPLAY_NAME' : 'Coldfusion' |
---|
3 | ,'COMMENT_SINGLE' : {1 : '//', 2 : '#'} |
---|
4 | ,'COMMENT_MULTI' : {'<!--' : '-->'} |
---|
5 | ,'COMMENT_MULTI2' : {'<!---' : '--->'} |
---|
6 | ,'QUOTEMARKS' : {1: "'", 2: '"'} |
---|
7 | ,'KEYWORD_CASE_SENSITIVE' : false |
---|
8 | ,'KEYWORDS' : { |
---|
9 | 'statements' : [ |
---|
10 | 'include', 'require', 'include_once', 'require_once', |
---|
11 | 'for', 'foreach', 'as', 'if', 'elseif', 'else', 'while', 'do', 'endwhile', |
---|
12 | 'endif', 'switch', 'case', 'endswitch', |
---|
13 | 'return', 'break', 'continue' |
---|
14 | ] |
---|
15 | ,'reserved' : [ |
---|
16 | 'AND', 'break', 'case', 'CONTAIN', 'CONTAINS', 'continue', 'default', 'do', |
---|
17 | 'DOES', 'else', 'EQ', 'EQUAL', 'EQUALTO', 'EQV', 'FALSE', 'for', 'GE', |
---|
18 | 'GREATER', 'GT', 'GTE', 'if', 'IMP', 'in', 'IS', 'LE', 'LESS', 'LT', 'LTE', |
---|
19 | 'MOD', 'NEQ', 'NOT', 'OR', 'return', 'switch', 'THAN', 'TO', 'TRUE', 'var', |
---|
20 | 'while', 'XOR' |
---|
21 | ] |
---|
22 | ,'functions' : [ |
---|
23 | 'Abs', 'ACos', 'ArrayAppend', 'ArrayAvg', 'ArrayClear', 'ArrayDeleteAt', 'ArrayInsertAt', |
---|
24 | 'ArrayIsEmpty', 'ArrayLen', 'ArrayMax', 'ArrayMin', 'ArrayNew', 'ArrayPrepend', 'ArrayResize', |
---|
25 | 'ArraySet', 'ArraySort', 'ArraySum', 'ArraySwap', 'ArrayToList', 'Asc', 'ASin', 'Atn', 'AuthenticatedContext', |
---|
26 | 'AuthenticatedUser', 'BitAnd', 'BitMaskClear', 'BitMaskRead', 'BitMaskSet', 'BitNot', 'BitOr', |
---|
27 | 'BitSHLN', 'BitSHRN', 'BitXor', 'Ceiling', 'Chr', 'CJustify', 'Compare', 'CompareNoCase', 'Cos', |
---|
28 | 'CreateDate', 'CreateDateTime', 'CreateODBCDate', 'CreateODBCDateTime', 'CreateODBCTime', |
---|
29 | 'CreateTime', 'CreateTimeSpan', 'DateAdd', 'DateCompare', 'DateConvert', 'DateDiff', |
---|
30 | 'DateFormat', 'DatePart', 'Day', 'DayOfWeek', 'DayOfWeekAsString', 'DayOfYear', 'DaysInMonth', |
---|
31 | 'DaysInYear', 'DE', 'DecimalFormat', 'DecrementValue', 'Decrypt', 'DeleteClientVariable', |
---|
32 | 'DirectoryExists', 'DollarFormat', 'Duplicate', 'Encrypt', 'Evaluate', 'Exp', 'ExpandPath', |
---|
33 | 'FileExists', 'Find', 'FindNoCase', 'FindOneOf', 'FirstDayOfMonth', 'Fix', 'FormatBaseN', |
---|
34 | 'GetBaseTagData', 'GetBaseTagList', 'GetBaseTemplatePath', 'GetClientVariablesList', |
---|
35 | 'GetCurrentTemplatePath', 'GetDirectoryFromPath', 'GetException', 'GetFileFromPath', |
---|
36 | 'GetFunctionList', 'GetHttpTimeString', 'GetHttpRequestData', 'GetLocale', 'GetMetricData', |
---|
37 | 'GetProfileString', 'GetTempDirectory', 'GetTempFile', 'GetTemplatePath', 'GetTickCount', |
---|
38 | 'GetTimeZoneInfo', 'GetToken', 'Hash', 'Hour', 'HTMLCodeFormat', 'HTMLEditFormat', 'IIf', |
---|
39 | 'IncrementValue', 'InputBaseN', 'Insert', 'Int', 'IsArray', 'IsAuthenticated', 'IsAuthorized', |
---|
40 | 'IsBoolean', 'IsBinary', 'IsCustomFunction', 'IsDate', 'IsDebugMode', 'IsDefined', 'IsLeapYear', |
---|
41 | 'IsNumeric', 'IsNumericDate', 'IsProtected', 'IsQuery', 'IsSimpleValue', 'IsStruct', 'IsWDDX', |
---|
42 | 'JavaCast', 'JSStringFormat', 'LCase', 'Left', 'Len', 'ListAppend', 'ListChangeDelims', |
---|
43 | 'ListContains', 'ListContainsNoCase', 'ListDeleteAt', 'ListFind', 'ListFindNoCase', 'ListFirst', |
---|
44 | 'ListGetAt', 'ListInsertAt', 'ListLast', 'ListLen', 'ListPrepend', 'ListQualify', 'ListRest', |
---|
45 | 'ListSetAt', 'ListSort', 'ListToArray', 'ListValueCount', 'ListValueCountNoCase', 'LJustify', |
---|
46 | 'Log', 'Log10', 'LSCurrencyFormat', 'LSDateFormat', 'LSEuroCurrencyFormat', 'LSIsCurrency', |
---|
47 | 'LSIsDate', 'LSIsNumeric', 'LSNumberFormat', 'LSParseCurrency', 'LSParseDateTime', 'LSParseNumber', |
---|
48 | 'LSTimeFormat', 'LTrim', 'Max', 'Mid', 'Min', 'Minute', 'Month', 'MonthAsString', 'Now', 'NumberFormat', |
---|
49 | 'ParagraphFormat', 'ParameterExists', 'ParseDateTime', 'Pi', 'PreserveSingleQuotes', 'Quarter', |
---|
50 | 'QueryAddRow', 'QueryNew', 'QuerySetCell', 'QuotedValueList', 'Rand', 'Randomize', 'RandRange', |
---|
51 | 'REFind', 'REFindNoCase', 'RemoveChars', 'RepeatString', 'Replace', 'ReplaceList', 'ReplaceNoCase', |
---|
52 | 'REReplace', 'REReplaceNoCase', 'Reverse', 'Right', 'RJustify', 'Round', 'RTrim', 'Second', 'SetLocale', |
---|
53 | 'SetProfileString', 'SetVariable', 'Sgn', 'Sin', 'SpanExcluding', 'SpanIncluding', 'Sqr', 'StripCR', |
---|
54 | 'StructAppend', 'StructClear', 'StructCopy', 'StructCount', 'StructDelete', 'StructFind', 'StructFindKey', |
---|
55 | 'StructFindValue', 'StructGet', 'StructInsert', 'StructIsEmpty', 'StructKeyArray', 'StructKeyExists', |
---|
56 | 'StructKeyList', 'StructNew', 'StructSort', 'StructUpdate', 'Tan', 'TimeFormat', 'ToBase64', 'ToBinary', |
---|
57 | 'ToString', 'Trim', 'UCase', 'URLDecode', 'URLEncodedFormat', 'Val', 'ValueList', 'Week', 'WriteOutput', |
---|
58 | 'XMLFormat', 'Year', 'YesNoFormat' |
---|
59 | ] |
---|
60 | } |
---|
61 | ,'OPERATORS' :[ |
---|
62 | '+', '-', '/', '*', '%', '!', '&&', '||' |
---|
63 | ] |
---|
64 | ,'DELIMITERS' :[ |
---|
65 | '(', ')', '[', ']', '{', '}' |
---|
66 | ] |
---|
67 | ,'REGEXPS' : { |
---|
68 | 'doctype' : { |
---|
69 | 'search' : '()(<!DOCTYPE[^>]*>)()' |
---|
70 | ,'class' : 'doctype' |
---|
71 | ,'modifiers' : '' |
---|
72 | ,'execute' : 'before' // before or after |
---|
73 | } |
---|
74 | ,'cftags' : { |
---|
75 | 'search' : '(<)(/cf[a-z][^ \r\n\t>]*)([^>]*>)' |
---|
76 | ,'class' : 'cftags' |
---|
77 | ,'modifiers' : 'gi' |
---|
78 | ,'execute' : 'before' // before or after |
---|
79 | } |
---|
80 | ,'cftags2' : { |
---|
81 | 'search' : '(<)(cf[a-z][^ \r\n\t>]*)([^>]*>)' |
---|
82 | ,'class' : 'cftags2' |
---|
83 | ,'modifiers' : 'gi' |
---|
84 | ,'execute' : 'before' // before or after |
---|
85 | } |
---|
86 | ,'tags' : { |
---|
87 | 'search' : '(<)(/?[a-z][^ \r\n\t>]*)([^>]*>)' |
---|
88 | ,'class' : 'tags' |
---|
89 | ,'modifiers' : 'gi' |
---|
90 | ,'execute' : 'before' // before or after |
---|
91 | } |
---|
92 | ,'attributes' : { |
---|
93 | 'search' : '( |\n|\r|\t)([^ \r\n\t=]+)(=)' |
---|
94 | ,'class' : 'attributes' |
---|
95 | ,'modifiers' : 'g' |
---|
96 | ,'execute' : 'before' // before or after |
---|
97 | } |
---|
98 | } |
---|
99 | ,'STYLES' : { |
---|
100 | 'COMMENTS': 'color: #AAAAAA;' |
---|
101 | ,'QUOTESMARKS': 'color: #6381F8;' |
---|
102 | ,'KEYWORDS' : { |
---|
103 | 'reserved' : 'color: #48BDDF;' |
---|
104 | ,'functions' : 'color: #0000FF;' |
---|
105 | ,'statements' : 'color: #60CA00;' |
---|
106 | } |
---|
107 | ,'OPERATORS' : 'color: #E775F0;' |
---|
108 | ,'DELIMITERS' : '' |
---|
109 | ,'REGEXPS' : { |
---|
110 | 'attributes': 'color: #990033;' |
---|
111 | ,'cftags': 'color: #990033;' |
---|
112 | ,'cftags2': 'color: #990033;' |
---|
113 | ,'tags': 'color: #000099;' |
---|
114 | ,'doctype': 'color: #8DCFB5;' |
---|
115 | ,'test': 'color: #00FF00;' |
---|
116 | } |
---|
117 | } |
---|
118 | }; |
---|
119 | |
---|
120 | |
---|