1. Hong Minhee
  2. pygments-main

Commits

Jeffrey Arnold  committed 3f12189

SLexer: fixed bug in valid_names

  • Participants
  • Parent commits 01db5c4
  • Branches fix-r

Comments (0)

Files changed (1)

File pygments/lexers/math.py Modified

View file
  • Ignore whitespace
  • Hide word diff
         'valid_name': [
             (r'[a-zA-Z][0-9a-zA-Z\._]+', Text),
             # can begin with ., but not if that is followed by a digit
-            (r'\.[a-zA-Z._][0-9a-zA-Z\._]+', Text),
+            (r'\.[a-zA-Z_][0-9a-zA-Z\._]+', Text),
             (r'`.+`', String.Backtick),
         ],
         'punctuation': [