diff --git a/lib/rouge/lexers/kotlin.rb b/lib/rouge/lexers/kotlin.rb index fe83a2adb0..a2cc138878 100644 --- a/lib/rouge/lexers/kotlin.rb +++ b/lib/rouge/lexers/kotlin.rb @@ -65,6 +65,9 @@ class Kotlin < RegexLexer rule %r'/[*].*[*]/', Comment::Multiline # single line block comment rule %r'/[*].*', Comment::Multiline, :comment # multiline block comment rule %r'\n', Text + rule %r'(::)(class)' do + groups Operator, Keyword + end rule %r'::|!!|\?[:.]', Operator rule %r"(\.\.)", Operator # Number literals