1. Jeffrey Arnold
  2. pygments-stan


Even Wiik Thomassen  committed 2af832d

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.

Comments (0)

Files changed (1)

File pygments/lexers/text.py Modified

View file
  • Ignore whitespace
  • Hide word diff
             (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),