lib/rouge/lexers/kotlin.rb in rouge-2.1.1 vs lib/rouge/lexers/kotlin.rb in rouge-2.2.0
- old
+ new
@@ -39,10 +39,10 @@
rule %r'@"(""|[^"])*"'m, Str
rule %r'""".*?"""'m, Str
rule %r'"(\\\\|\\"|[^"\n])*["\n]'m, Str
rule %r"'\\.'|'[^\\]'", Str::Char
rule %r"[0-9](\.[0-9]+)?([eE][+-][0-9]+)?[flFL]?|0[xX][0-9a-fA-F]+[Ll]?", Num
- rule %r'(class)(\s+)(object)' do
+ rule %r'(companion)(\s+)(object)' do
groups Keyword, Text, Keyword
end
rule %r'(class|data\s+class|interface|object)(\s+)' do
groups Keyword::Declaration, Text
push :class