diff options
author | Gaurav Jain <gaurav@gauravjain.org> | 2014-05-14 22:41:17 -0400 |
---|---|---|
committer | Gaurav Jain <gaurav@gauravjain.org> | 2014-05-14 22:41:17 -0400 |
commit | c526e39da6e14d4e557f854aceaaff86c22530a8 (patch) | |
tree | bf866e10c8bb03796256b70e1947060168624a55 /pygments/lexers/math.py | |
parent | 745f1e190950d2510aecc33de9f1727e24ddddf0 (diff) | |
download | pygments-c526e39da6e14d4e557f854aceaaff86c22530a8.tar.gz |
Replace all occurences of a-zA-Z0-9_ with \w
Diffstat (limited to 'pygments/lexers/math.py')
-rw-r--r-- | pygments/lexers/math.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pygments/lexers/math.py b/pygments/lexers/math.py index d8cc0f06..cd98a755 100644 --- a/pygments/lexers/math.py +++ b/pygments/lexers/math.py @@ -97,7 +97,7 @@ class JuliaLexer(RegexLexer): (r'[E]?"', String, combined('stringescape', 'string')), # names - (r'@[a-zA-Z0-9_.]+', Name.Decorator), + (r'@[\w.]+', Name.Decorator), (r'[a-zA-Z_]\w*', Name), # numbers @@ -1461,7 +1461,7 @@ class BugsLexer(RegexLexer): % r'|'.join(_FUNCTIONS + _DISTRIBUTIONS), Name.Builtin), # Regular variable names - (r'[A-Za-z][A-Za-z0-9_.]*', Name), + (r'[A-Za-z][\w.]*', Name), # Number Literals (r'[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?', Number), # Punctuation @@ -1521,7 +1521,7 @@ class JagsLexer(RegexLexer): ], 'names' : [ # Regular variable names - (r'[a-zA-Z][a-zA-Z0-9_.]*\b', Name), + (r'[a-zA-Z][\w.]*\b', Name), ], 'comments' : [ # do not use stateful comments |