diff options
author | Gaurav Jain <gaurav@gauravjain.org> | 2014-05-15 23:52:25 -0400 |
---|---|---|
committer | Gaurav Jain <gaurav@gauravjain.org> | 2014-05-15 23:52:25 -0400 |
commit | 414c88e054f41981ec406971403a250f31270dfd (patch) | |
tree | 187dac55de5eb5fc2eb6cf8b404f89d288fd5514 /pygments/lexers/dotnet.py | |
parent | cf473924c5aa0268cb9e78cff6809a509a94169a (diff) | |
download | pygments-414c88e054f41981ec406971403a250f31270dfd.tar.gz |
Replace a-z0-9_ with \w when IGNORECASE is set
Diffstat (limited to 'pygments/lexers/dotnet.py')
-rw-r--r-- | pygments/lexers/dotnet.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pygments/lexers/dotnet.py b/pygments/lexers/dotnet.py index 181c1542..5a07cd0d 100644 --- a/pygments/lexers/dotnet.py +++ b/pygments/lexers/dotnet.py @@ -439,17 +439,17 @@ class VbNetLexer(RegexLexer): (r'[^"]+', String), ], 'dim': [ - (r'[a-z_][a-z0-9_]*', Name.Variable, '#pop'), + (r'[a-z_]\w*', Name.Variable, '#pop'), (r'', Text, '#pop'), # any other syntax ], 'funcname': [ - (r'[a-z_][a-z0-9_]*', Name.Function, '#pop'), + (r'[a-z_]\w*', Name.Function, '#pop'), ], 'classname': [ - (r'[a-z_][a-z0-9_]*', Name.Class, '#pop'), + (r'[a-z_]\w*', Name.Class, '#pop'), ], 'namespace': [ - (r'[a-z_][a-z0-9_.]*', Name.Namespace, '#pop'), + (r'[a-z_][\w.]*', Name.Namespace, '#pop'), ], 'end': [ (r'\s+', Text), |