130 include('literal'), |
130 include('literal'), |
131 include('other'), |
131 include('other'), |
132 ], |
132 ], |
133 'keywords': [ |
133 'keywords': [ |
134 # Conditions |
134 # Conditions |
135 (r'(\[)(?i)(browser|compatVersion|dayofmonth|dayofweek|dayofyear|' |
135 (r'(?i)(\[)(browser|compatVersion|dayofmonth|dayofweek|dayofyear|' |
136 r'device|ELSE|END|GLOBAL|globalString|globalVar|hostname|hour|IP|' |
136 r'device|ELSE|END|GLOBAL|globalString|globalVar|hostname|hour|IP|' |
137 r'language|loginUser|loginuser|minute|month|page|PIDinRootline|' |
137 r'language|loginUser|loginuser|minute|month|page|PIDinRootline|' |
138 r'PIDupinRootline|system|treeLevel|useragent|userFunc|usergroup|' |
138 r'PIDupinRootline|system|treeLevel|useragent|userFunc|usergroup|' |
139 r'version)([^\]]*)(\])', |
139 r'version)([^\]]*)(\])', |
140 bygroups(String.Symbol, Name.Constant, Text, String.Symbol)), |
140 bygroups(String.Symbol, Name.Constant, Text, String.Symbol)), |
170 (r'\s+', Text), |
170 (r'\s+', Text), |
171 ], |
171 ], |
172 'html': [ |
172 'html': [ |
173 (r'<\S[^\n>]*>', using(TypoScriptHtmlDataLexer)), |
173 (r'<\S[^\n>]*>', using(TypoScriptHtmlDataLexer)), |
174 (r'&[^;\n]*;', String), |
174 (r'&[^;\n]*;', String), |
175 (r'(_CSS_DEFAULT_STYLE)(\s*)(\()(?s)(.*(?=\n\)))', |
175 (r'(?s)(_CSS_DEFAULT_STYLE)(\s*)(\()(.*(?=\n\)))', |
176 bygroups(Name.Class, Text, String.Symbol, using(TypoScriptCssDataLexer))), |
176 bygroups(Name.Class, Text, String.Symbol, using(TypoScriptCssDataLexer))), |
177 ], |
177 ], |
178 'literal': [ |
178 'literal': [ |
179 (r'0x[0-9A-Fa-f]+t?', Number.Hex), |
179 (r'0x[0-9A-Fa-f]+t?', Number.Hex), |
180 # (r'[0-9]*\.[0-9]+([eE][0-9]+)?[fd]?\s*(?:[^=])', Number.Float), |
180 # (r'[0-9]*\.[0-9]+([eE][0-9]+)?[fd]?\s*(?:[^=])', Number.Float), |