lib/rouge/lexers/csharp.rb in rouge-2.0.1 vs lib/rouge/lexers/csharp.rb in rouge-2.0.2
- old
+ new
@@ -41,10 +41,10 @@
endregion pragma
)
state :whitespace do
rule /\s+/m, Text
- rule %r(//.*?\n), Comment::Single
+ rule %r(//.*?$), Comment::Single
rule %r(/[*].*?[*]/)m, Comment::Multiline
end
state :root do
mixin :whitespace