summaryrefslogtreecommitdiff
path: root/pygments/lexers/math.py
diff options
context:
space:
mode:
authorTim Hatch <tim@timhatch.com>2012-03-09 12:06:19 -0800
committerTim Hatch <tim@timhatch.com>2012-03-09 12:06:19 -0800
commit70436b2643b47cd450d13a6ec13e58545ae0eb11 (patch)
tree8a2f45ee3824f0621cb39f91bb40eb21ae60d08e /pygments/lexers/math.py
parent6b7349b7279cb06dd4f8a1020fa2b3d8dc66a34a (diff)
downloadpygments-70436b2643b47cd450d13a6ec13e58545ae0eb11.tar.gz
Fix a couple of empty matches
--- pygments/lexers/math.py | 2 +- pygments/lexers/web.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
Diffstat (limited to 'pygments/lexers/math.py')
-rw-r--r--pygments/lexers/math.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/lexers/math.py b/pygments/lexers/math.py
index d69a8523..77067f35 100644
--- a/pygments/lexers/math.py
+++ b/pygments/lexers/math.py
@@ -668,7 +668,7 @@ class ScilabLexer(RegexLexer):
_scilab_builtins.macros_kw
) + r')\b', Name.Builtin),
- ("(" + "|".join(_scilab_builtins.builtin_consts) + r')\b',
+ (r'(%s)\b' % "|".join(map(re.escape, _scilab_builtins.builtin_consts)),
Name.Constant),
# operators: