summaryrefslogtreecommitdiff
path: root/pygments/lexers/_mapping.py
diff options
context:
space:
mode:
authorBob Tolbert <bob@tolbert.org>2013-09-08 15:58:19 -0600
committerBob Tolbert <bob@tolbert.org>2013-09-08 15:58:19 -0600
commit846195f0fb24e724a611d601494fa5056936b5bc (patch)
tree65df35ce1d501c24d46d46f19e424ad3ee25f428 /pygments/lexers/_mapping.py
parent1ea0fa53d253eae501f0a48611dd01493240b34d (diff)
downloadpygments-846195f0fb24e724a611d601494fa5056936b5bc.tar.gz
Added lexer for new Hy language, a variant of Lisp running
on Python. See: http://hylang.org Note that this shares a file extension with the Hybris language but the analyse_text() function does a good job of making the distinction. This did however require one change to the tests to actually pass the code of the test file to get_lexer_for_filename() so that the tests would differentiate Hy from Hybris. And while this is a Lisp and shares some syntax with Clojure, it has been added to the agile.py file to share the lists of keywords and builtins with the PythonLexer.
Diffstat (limited to 'pygments/lexers/_mapping.py')
-rw-r--r--pygments/lexers/_mapping.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pygments/lexers/_mapping.py b/pygments/lexers/_mapping.py
index 969bdba5..c96001e3 100644
--- a/pygments/lexers/_mapping.py
+++ b/pygments/lexers/_mapping.py
@@ -136,6 +136,7 @@ LEXERS = {
'HttpLexer': ('pygments.lexers.text', 'HTTP', ('http',), (), ()),
'HxmlLexer': ('pygments.lexers.text', 'Hxml', ('haxeml', 'hxml'), ('*.hxml',), ()),
'HybrisLexer': ('pygments.lexers.other', 'Hybris', ('hybris', 'hy'), ('*.hy', '*.hyb'), ('text/x-hybris', 'application/x-hybris')),
+ 'HyLexer': ('pygments.lexers.agile', 'Hy', ('hylang',), ('*.hy',), ('text/x-hy', 'application/x-hy')),
'IDLLexer': ('pygments.lexers.math', 'IDL', ('idl',), ('*.pro',), ('text/idl',)),
'IgorLexer': ('pygments.lexers.math', 'Igor', ('igor', 'igorpro'), ('*.ipf',), ('text/ipf',)),
'IniLexer': ('pygments.lexers.text', 'INI', ('ini', 'cfg', 'dosini'), ('*.ini', '*.cfg'), ('text/x-ini',)),