diff options
author | gbrandl <devnull@localhost> | 2009-07-11 12:26:44 +0200 |
---|---|---|
committer | gbrandl <devnull@localhost> | 2009-07-11 12:26:44 +0200 |
commit | d4db7410dd33dd490b8b9bd4221a7fc1217b722d (patch) | |
tree | 94e8906c85a1baf0d7d882258ea0a7de3dcc2984 /pygments/lexers/dotnet.py | |
parent | b7065708b24f8c63a5c505bb4d46fbaaa8cb3e03 (diff) | |
download | pygments-d4db7410dd33dd490b8b9bd4221a7fc1217b722d.tar.gz |
#421: Emit Comment.Single or Comment.Multiline tokens for languages that have both variants.
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 0379f3b6..4b03beae 100644 --- a/pygments/lexers/dotnet.py +++ b/pygments/lexers/dotnet.py @@ -86,8 +86,8 @@ class CSharpLexer(RegexLexer): (r'^\s*\[.*?\]', Name.Attribute), (r'[^\S\n]+', Text), (r'\\\n', Text), # line continuation - (r'//.*?\n', Comment), - (r'/[*](.|\n)*?[*]/', Comment), + (r'//.*?\n', Comment.Single), + (r'/[*](.|\n)*?[*]/', Comment.Multiline), (r'\n', Text), (r'[~!%^&*()+=|\[\]:;,.<>/?-]', Punctuation), (r'[{}]', Punctuation), @@ -151,8 +151,8 @@ class BooLexer(RegexLexer): tokens = { 'root': [ (r'\s+', Text), - (r'(#|//).*$', Comment), - (r'/[*]', Comment, 'comment'), + (r'(#|//).*$', Comment.Single), + (r'/[*]', Comment.Multiline, 'comment'), (r'[]{}:(),.;[]', Punctuation), (r'\\\n', Text), (r'\\', Text), |