summaryrefslogtreecommitdiff
path: root/pygments/lexers/ezhil.py
diff options
context:
space:
mode:
authorMatthäus G. Chajdas <dev@anteru.net>2020-09-22 20:40:58 +0200
committerMatthäus G. Chajdas <dev@anteru.net>2020-09-22 20:40:58 +0200
commitf0d31da6b26e7057dc488d8ee04e06b1a448a49c (patch)
treebb01aa5da7a5f4aa4e3e2a4836b040c535ea977d /pygments/lexers/ezhil.py
parent07f596dbb9357c1ec2077bdc4319f594d287ae15 (diff)
downloadpygments-git-task/add-analyze-text.tar.gz
Improve various analyse_text methods.task/add-analyze-text
* Make Perl less confident in presence of :=. * Improve brainfuck check to not parse the whole input. * Improve Unicon by matching \self, /self * Fix Ezhil not matching against the input text
Diffstat (limited to 'pygments/lexers/ezhil.py')
-rw-r--r--pygments/lexers/ezhil.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/lexers/ezhil.py b/pygments/lexers/ezhil.py
index 109b607b..4af37f33 100644
--- a/pygments/lexers/ezhil.py
+++ b/pygments/lexers/ezhil.py
@@ -69,7 +69,7 @@ class EzhilLexer(RegexLexer):
decent amount of Tamil-characters, it's this language. This assumption
is obviously horribly off if someone uses string literals in tamil
in another language."""
- if len(re.findall('[\u0b80-\u0bff]')) > 10:
+ if len(re.findall(r'[\u0b80-\u0bff]', text)) > 10:
return 0.25
def __init__(self, **options):