summaryrefslogtreecommitdiff
path: root/pygments/lexers/functional.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-07-22 11:37:10 +0100
committerGeorg Brandl <georg@python.org>2010-07-22 11:37:10 +0100
commit3148fab68d09dcf172ab67056a63dc0b990761e1 (patch)
tree2c0d33efd0b7fdc5cccff1e32f0e3f46da9edc93 /pygments/lexers/functional.py
parentb4bd48e2c463f859799a95b732485afc28472cd6 (diff)
downloadpygments-3148fab68d09dcf172ab67056a63dc0b990761e1.tar.gz
Fix regexes to be compatible with the "regex" module.
Diffstat (limited to 'pygments/lexers/functional.py')
-rw-r--r--pygments/lexers/functional.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/lexers/functional.py b/pygments/lexers/functional.py
index 4e429aa6..de48d992 100644
--- a/pygments/lexers/functional.py
+++ b/pygments/lexers/functional.py
@@ -688,7 +688,7 @@ class ErlangLexer(RegexLexer):
(r'[+-]?'+base_re+r'#[0-9a-zA-Z]+', Number.Integer),
(r'[+-]?\d+', Number.Integer),
(r'[+-]?\d+.\d+', Number.Float),
- (r'[][:_@\".{}()|;,]', Punctuation),
+ (r'[]\[:_@\".{}()|;,]', Punctuation),
(variable_re, Name.Variable),
(atom_re, Name),
(r'\?'+macro_re, Name.Constant),