summaryrefslogtreecommitdiff
path: root/pygments/lexers/ezhil.py
diff options
context:
space:
mode:
Diffstat (limited to 'pygments/lexers/ezhil.py')
-rw-r--r--pygments/lexers/ezhil.py21
1 files changed, 11 insertions, 10 deletions
diff --git a/pygments/lexers/ezhil.py b/pygments/lexers/ezhil.py
index a5468a0f..ce1cdb2d 100644
--- a/pygments/lexers/ezhil.py
+++ b/pygments/lexers/ezhil.py
@@ -4,8 +4,8 @@
~~~~~~~~~~~~~~~~~~~~~
Pygments lexers for Ezhil language.
-
- :copyright: Copyright 2006-2015 by the Pygments team, see AUTHORS.
+
+ :copyright: Copyright 2006-2017 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
@@ -16,6 +16,7 @@ from pygments.token import String, Number, Punctuation, Operator
__all__ = ['EzhilLexer']
+
class EzhilLexer(RegexLexer):
"""
Lexer for `Ezhil, a Tamil script-based programming language <http://ezhillang.org>`_
@@ -36,13 +37,13 @@ class EzhilLexer(RegexLexer):
(r'#.*\n', Comment.Single),
(r'[@+/*,^\-%]|[!<>=]=?|&&?|\|\|?', Operator),
(u'இல்', Operator.Word),
- (words(('assert', 'max', 'min',
- 'நீளம்','சரம்_இடமாற்று','சரம்_கண்டுபிடி',
- 'பட்டியல்','பின்இணை','வரிசைப்படுத்து',
- 'எடு','தலைகீழ்','நீட்டிக்க','நுழைக்க','வை',
- 'கோப்பை_திற','கோப்பை_எழுது','கோப்பை_மூடு',
- 'pi','sin','cos','tan','sqrt','hypot','pow','exp','log','log10'
- 'min','max','exit',
+ (words((u'assert', u'max', u'min',
+ u'நீளம்', u'சரம்_இடமாற்று', u'சரம்_கண்டுபிடி',
+ u'பட்டியல்', u'பின்இணை', u'வரிசைப்படுத்து',
+ u'எடு', u'தலைகீழ்', u'நீட்டிக்க', u'நுழைக்க', u'வை',
+ u'கோப்பை_திற', u'கோப்பை_எழுது', u'கோப்பை_மூடு',
+ u'pi', u'sin', u'cos', u'tan', u'sqrt', u'hypot', u'pow',
+ u'exp', u'log', u'log10', u'exit',
), suffix=r'\b'), Name.Builtin),
(r'(True|False)\b', Keyword.Constant),
(r'[^\S\n]+', Text),
@@ -62,7 +63,7 @@ class EzhilLexer(RegexLexer):
(r'(?u)\d+', Number.Integer),
]
}
-
+
def __init__(self, **options):
super(EzhilLexer, self).__init__(**options)
self.encoding = options.get('encoding', 'utf-8')