lib/rouge/lexers/kotlin.rb in rouge-3.27.0 vs lib/rouge/lexers/kotlin.rb in rouge-3.28.0
- old
+ new
@@ -114,15 +114,17 @@
state :generic_parameters do
rule class_name, Name::Class
rule %r'(<)', Punctuation, :generic_parameters
rule %r'(reified|out|in)', Keyword
- rule %r'([,:])', Punctuation
+ rule %r'([,:.?])', Punctuation
rule %r'(\s+)', Text
rule %r'(>)', Punctuation, :pop!
end
state :property do
+ rule %r'(<)', Punctuation, :generic_parameters
+ rule %r'(\s+)', Text
rule name, Name::Property, :pop!
end
state :destructure do
rule %r'(,)', Punctuation