summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Li <andy@onthewings.net>2012-11-26 00:02:58 +0800
committerAndy Li <andy@onthewings.net>2012-11-26 00:02:58 +0800
commit368ccceda7617e87ee80dcb3f66cdb51d1f03a16 (patch)
tree8eb397ab311af64f22d8e045c304cb45d2dc242f
parent02c30d1891b94c9d88c7cc0ee2b00f45e9134015 (diff)
downloadpygments-368ccceda7617e87ee80dcb3f66cdb51d1f03a16.tar.gz
updated Haxe info
-rw-r--r--pygments/lexers/_mapping.py2
-rw-r--r--pygments/lexers/web.py6
2 files changed, 4 insertions, 4 deletions
diff --git a/pygments/lexers/_mapping.py b/pygments/lexers/_mapping.py
index 2297036c..ca0d0c79 100644
--- a/pygments/lexers/_mapping.py
+++ b/pygments/lexers/_mapping.py
@@ -114,7 +114,7 @@ LEXERS = {
'GroovyLexer': ('pygments.lexers.jvm', 'Groovy', ('groovy',), ('*.groovy',), ('text/x-groovy',)),
'HamlLexer': ('pygments.lexers.web', 'Haml', ('haml', 'HAML'), ('*.haml',), ('text/x-haml',)),
'HaskellLexer': ('pygments.lexers.functional', 'Haskell', ('haskell', 'hs'), ('*.hs',), ('text/x-haskell',)),
- 'HaxeLexer': ('pygments.lexers.web', 'Haxe', ('hx', 'Haxe'), ('*.hx',), ('text/haxe',)),
+ 'HaxeLexer': ('pygments.lexers.web', 'Haxe', ('hx', 'Haxe', 'haxe', 'haXe', 'hxsl'), ('*.hx', '*.hxsl'), ('text/haxe', 'text/x-haxe', 'text/x-hx')),
'HtmlDjangoLexer': ('pygments.lexers.templates', 'HTML+Django/Jinja', ('html+django', 'html+jinja'), (), ('text/html+django', 'text/html+jinja')),
'HtmlGenshiLexer': ('pygments.lexers.templates', 'HTML+Genshi', ('html+genshi', 'html+kid'), (), ('text/html+genshi',)),
'HtmlLexer': ('pygments.lexers.web', 'HTML', ('html',), ('*.html', '*.htm', '*.xhtml', '*.xslt'), ('text/html', 'application/xhtml+xml')),
diff --git a/pygments/lexers/web.py b/pygments/lexers/web.py
index 5e1453af..27f46e70 100644
--- a/pygments/lexers/web.py
+++ b/pygments/lexers/web.py
@@ -1132,9 +1132,9 @@ class HaxeLexer(ExtendedRegexLexer):
"""
name = 'Haxe'
- aliases = ['hx', 'Haxe', 'haxe', 'haXe'] #TODO update in other files
- filenames = ['*.hx']
- mimetypes = ['text/haxe', 'text/x-haxe', 'text/x-hx'] #TODO update in other files
+ aliases = ['hx', 'Haxe', 'haxe', 'haXe', 'hxsl']
+ filenames = ['*.hx', '*.hxsl']
+ mimetypes = ['text/haxe', 'text/x-haxe', 'text/x-hx']
# keywords extracted from lexer.mll in the haxe compiler source
keyword = (r'(?:function|class|static|var|if|else|while|do|for|'