12 Lexer that highlights markers, constants and registers within css. |
12 Lexer that highlights markers, constants and registers within css. |
13 |
13 |
14 `TypoScriptHtmlDataLexer` |
14 `TypoScriptHtmlDataLexer` |
15 Lexer that highlights markers, constants and registers within html tags. |
15 Lexer that highlights markers, constants and registers within html tags. |
16 |
16 |
17 :copyright: Copyright 2006-2017 by the Pygments team, see AUTHORS. |
17 :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. |
18 :license: BSD, see LICENSE for details. |
18 :license: BSD, see LICENSE for details. |
19 """ |
19 """ |
20 |
20 |
21 import re |
21 import re |
22 |
22 |
106 .. versionadded:: 2.2 |
106 .. versionadded:: 2.2 |
107 """ |
107 """ |
108 |
108 |
109 name = 'TypoScript' |
109 name = 'TypoScript' |
110 aliases = ['typoscript'] |
110 aliases = ['typoscript'] |
111 filenames = ['*.ts', '*.txt'] |
111 filenames = ['*.typoscript'] |
112 mimetypes = ['text/x-typoscript'] |
112 mimetypes = ['text/x-typoscript'] |
113 |
113 |
114 flags = re.DOTALL | re.MULTILINE |
114 flags = re.DOTALL | re.MULTILINE |
115 |
|
116 # Slightly higher than TypeScript (which is 0). |
|
117 priority = 0.1 |
|
118 |
115 |
119 tokens = { |
116 tokens = { |
120 'root': [ |
117 'root': [ |
121 include('comment'), |
118 include('comment'), |
122 include('constant'), |
119 include('constant'), |