diff options
author | gbrandl <devnull@localhost> | 2006-12-18 17:36:25 +0100 |
---|---|---|
committer | gbrandl <devnull@localhost> | 2006-12-18 17:36:25 +0100 |
commit | 4db59c44e62404ace83e174d6c1649fa718e03d2 (patch) | |
tree | 375164a50726f77aad17d07f9e70b6d0373bfd4d /pygments/lexers/dotnet.py | |
parent | d6f36b551c9857a6392acc9b2fdbe2f707c6ab1c (diff) | |
download | pygments-4db59c44e62404ace83e174d6c1649fa718e03d2.tar.gz |
[svn] Use the Punctuation token type everywhere.
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 c240d17a..c8b278d8 100644 --- a/pygments/lexers/dotnet.py +++ b/pygments/lexers/dotnet.py @@ -11,7 +11,7 @@ import re from pygments.lexer import RegexLexer, bygroups, using, this -from pygments.token import \ +from pygments.token import Punctuation, \ Text, Comment, Operator, Keyword, Name, String, Number, Literal __all__ = ['CSharpLexer', 'BooLexer', 'VbNetLexer'] @@ -39,7 +39,7 @@ class CSharpLexer(RegexLexer): (r'//.*?\n', Comment), (r'/[*](.|\n)*?[*]/', Comment), (r'\n', Text), - (r'[~!%^&*()+=|\[\]:;,.<>/?-]', Text), + (r'[~!%^&*()+=|\[\]:;,.<>/?-]', Punctuation), (r'[{}]', Keyword), (r'@"(\\\\|\\"|[^"])*"', String), (r'"(\\\\|\\"|[^"\n])*["\n]', String), @@ -85,7 +85,7 @@ class BooLexer(RegexLexer): (r'\s+', Text), (r'(#|//).*$', Comment), (r'/[*]', Comment, 'comment'), - (r'[]{}:(),.;[]', Text), + (r'[]{}:(),.;[]', Punctuation), (r'\\\n', Text), (r'\\', Text), (r'(in|is|and|or|not)\b', Operator.Word), @@ -155,7 +155,7 @@ class VbNetLexer(RegexLexer): r'#ExternalSource.*?\n|#End\s+ExternalSource|' r'#Region.*?\n|#End\s+Region|#ExternalChecksum', Comment.Preproc), - (r'[\(\){}!#,.:]', Text), + (r'[\(\){}!#,.:]', Punctuation), (r'Option\s+(Strict|Explicit|Compare)\s+' r'(On|Off|Binary|Text)', Keyword.Declaration), (r'(?<!\.)(AddHandler|Alias|' |