diff options
-rw-r--r-- | pygments/lexers/math.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/lexers/math.py b/pygments/lexers/math.py index 7b738e38..9139e19a 100644 --- a/pygments/lexers/math.py +++ b/pygments/lexers/math.py @@ -1012,7 +1012,7 @@ class SLexer(RegexLexer): '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': [ |