1. Eric Knibbe
  2. pygments-main

Commits

Eric Knibbe  committed 1857d51

marks escaped or retargeted members

  • Participants
  • Parent commits 219be8a
  • Branches default

Comments (0)

Files changed (1)

File pygments/lexers/web.py

View file
  • Ignore whitespace
                 bygroups(Name.Builtin.Pseudo, Operator, Name.Variable.Class)),
             (r'(\.\.?)([a-z_][\w.]*)',
                 bygroups(Name.Builtin.Pseudo, Name.Other.Member)),
-            (r'(->\s*)([a-z_][\w.]*)', bygroups(Operator, Name.Other.Member)),
+            (r'(->\\?\s*|&\s*)([a-z_][\w.]*)',
+                bygroups(Operator, Name.Other.Member)),
             (r'(self|inherited|global|void)\b', Name.Builtin.Pseudo),
             (r'-[a-z_][\w.]*', Name.Attribute),
             (r'(::\s*)([a-z_][\w.]*)', bygroups(Punctuation, Name.Label)),