242 name = 'XSLT' |
242 name = 'XSLT' |
243 aliases = ['xslt'] |
243 aliases = ['xslt'] |
244 filenames = ['*.xsl', '*.xslt', '*.xpl'] # xpl is XProc |
244 filenames = ['*.xsl', '*.xslt', '*.xpl'] # xpl is XProc |
245 mimetypes = ['application/xsl+xml', 'application/xslt+xml'] |
245 mimetypes = ['application/xsl+xml', 'application/xslt+xml'] |
246 |
246 |
247 EXTRA_KEYWORDS = set(( |
247 EXTRA_KEYWORDS = { |
248 'apply-imports', 'apply-templates', 'attribute', |
248 'apply-imports', 'apply-templates', 'attribute', |
249 'attribute-set', 'call-template', 'choose', 'comment', |
249 'attribute-set', 'call-template', 'choose', 'comment', |
250 'copy', 'copy-of', 'decimal-format', 'element', 'fallback', |
250 'copy', 'copy-of', 'decimal-format', 'element', 'fallback', |
251 'for-each', 'if', 'import', 'include', 'key', 'message', |
251 'for-each', 'if', 'import', 'include', 'key', 'message', |
252 'namespace-alias', 'number', 'otherwise', 'output', 'param', |
252 'namespace-alias', 'number', 'otherwise', 'output', 'param', |
253 'preserve-space', 'processing-instruction', 'sort', |
253 'preserve-space', 'processing-instruction', 'sort', |
254 'strip-space', 'stylesheet', 'template', 'text', 'transform', |
254 'strip-space', 'stylesheet', 'template', 'text', 'transform', |
255 'value-of', 'variable', 'when', 'with-param' |
255 'value-of', 'variable', 'when', 'with-param' |
256 )) |
256 } |
257 |
257 |
258 def get_tokens_unprocessed(self, text): |
258 def get_tokens_unprocessed(self, text): |
259 for index, token, value in XmlLexer.get_tokens_unprocessed(self, text): |
259 for index, token, value in XmlLexer.get_tokens_unprocessed(self, text): |
260 m = re.match('</?xsl:([^>]*)/?>?', value) |
260 m = re.match('</?xsl:([^>]*)/?>?', value) |
261 |
261 |