Commits

Jeffrey Arnold committed 3f12189

SLexer: fixed bug in valid_names

Comments (0)

Files changed (1)

pygments/lexers/math.py

         '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': [