lib/rouge/lexers/kotlin.rb in rouge-3.0.0 vs lib/rouge/lexers/kotlin.rb in rouge-3.1.0
- old
+ new
@@ -29,10 +29,10 @@
state :root do
rule %r'^\s*\[.*?\]', Name::Attribute
rule %r'[^\S\n]+', Text
rule %r'\\\n', Text # line continuation
- rule %r'//.*?\n', Comment::Single
+ rule %r'//.*?$', Comment::Single
rule %r'/[*].*?[*]/'m, Comment::Multiline
rule %r'\n', Text
rule %r'::|!!|\?[:.]', Operator
rule %r"(\.\.)", Operator
rule %r'[~!%^&*()+=|\[\]:;,.<>/?-]', Punctuation