Commits

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.

  • Participants
  • Parent commits c55fb79
  • Branches pypylog

Comments (0)

Files changed (1)

File pygments/lexers/text.py

             (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|"