summaryrefslogtreecommitdiff
path: root/pygments/lexers/text.py
diff options
context:
space:
mode:
authorEven Wiik Thomassen <eventh@gmail.com>2012-12-16 14:29:22 +0100
committerEven Wiik Thomassen <eventh@gmail.com>2012-12-16 14:29:22 +0100
commitebb412035e93b081d7b0d18902ee6656dc12e142 (patch)
tree6b0225dc1005ff23e73a3e19c6c3b0cc0160abd7 /pygments/lexers/text.py
parentf56dfa92ab78b1834677b84a9b2f21c3e1eb5a52 (diff)
downloadpygments-ebb412035e93b081d7b0d18902ee6656dc12e142.tar.gz
Fix as PyPyLogs can contain nested builtin names.
This line from an example pypylog shows the problem: +314: p39 = getinteriorfield_gc(p38, i34, descr=<InteriorFieldDescr <FieldP dictentry.value 4>>) Fix was to simply modify the regex to consume one or more '>' instead of only one.
Diffstat (limited to 'pygments/lexers/text.py')
-rw-r--r--pygments/lexers/text.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/lexers/text.py b/pygments/lexers/text.py
index ca50665e..d22df9d8 100644
--- a/pygments/lexers/text.py
+++ b/pygments/lexers/text.py
@@ -1760,7 +1760,7 @@ class PyPyLogLexer(RegexLexer):
(r"-?\d+", Number.Integer),
(r"'.*'", String),
(r"(None|descr|ConstClass|ConstPtr|TargetToken)", Name),
- (r"<.*?>", Name.Builtin),
+ (r"<.*?>+", Name.Builtin),
(r"(label|debug_merge_point|jump|finish)", Name.Class),
(r"(int_add_ovf|int_add|int_sub_ovf|int_sub|int_mul_ovf|int_mul|"
r"int_floordiv|int_mod|int_lshift|int_rshift|int_and|int_or|"