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.py22
1 files changed, 11 insertions, 11 deletions
diff --git a/pygments/lexers/ezhil.py b/pygments/lexers/ezhil.py
index 37d793dd..ea5bba3c 100644
--- a/pygments/lexers/ezhil.py
+++ b/pygments/lexers/ezhil.py
@@ -30,20 +30,20 @@ class EzhilLexer(RegexLexer):
flags = re.MULTILINE | re.UNICODE
# Refer to tamil.utf8.tamil_letters from open-tamil for a stricter version of this.
# This much simpler version is close enough, and includes combining marks.
- _TALETTERS = u'[a-zA-Z_]|[\u0b80-\u0bff]'
+ _TALETTERS = '[a-zA-Z_]|[\u0b80-\u0bff]'
tokens = {
'root': [
include('keywords'),
(r'#.*\n', Comment.Single),
(r'[@+/*,^\-%]|[!<>=]=?|&&?|\|\|?', Operator),
- (u'இல்', Operator.Word),
- (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',
+ ('இல்', Operator.Word),
+ (words(('assert', 'max', 'min',
+ 'நீளம்', 'சரம்_இடமாற்று', 'சரம்_கண்டுபிடி',
+ 'பட்டியல்', 'பின்இணை', 'வரிசைப்படுத்து',
+ 'எடு', 'தலைகீழ்', 'நீட்டிக்க', 'நுழைக்க', 'வை',
+ 'கோப்பை_திற', 'கோப்பை_எழுது', 'கோப்பை_மூடு',
+ 'pi', 'sin', 'cos', 'tan', 'sqrt', 'hypot', 'pow',
+ 'exp', 'log', 'log10', 'exit',
), suffix=r'\b'), Name.Builtin),
(r'(True|False)\b', Keyword.Constant),
(r'[^\S\n]+', Text),
@@ -52,10 +52,10 @@ class EzhilLexer(RegexLexer):
(r'[(){}\[\]:;.]', Punctuation),
],
'keywords': [
- (u'பதிப்பி|தேர்ந்தெடு|தேர்வு|ஏதேனில்|ஆனால்|இல்லைஆனால்|இல்லை|ஆக|ஒவ்வொன்றாக|இல்|வரை|செய்|முடியேனில்|பின்கொடு|முடி|நிரல்பாகம்|தொடர்|நிறுத்து|நிரல்பாகம்', Keyword),
+ ('பதிப்பி|தேர்ந்தெடு|தேர்வு|ஏதேனில்|ஆனால்|இல்லைஆனால்|இல்லை|ஆக|ஒவ்வொன்றாக|இல்|வரை|செய்|முடியேனில்|பின்கொடு|முடி|நிரல்பாகம்|தொடர்|நிறுத்து|நிரல்பாகம்', Keyword),
],
'identifier': [
- (u'(?:'+_TALETTERS+u')(?:[0-9]|'+_TALETTERS+u')*', Name),
+ ('(?:'+_TALETTERS+')(?:[0-9]|'+_TALETTERS+')*', Name),
],
'literal': [
(r'".*?"', String),