lib/rouge/lexers/scala.rb in rouge-3.5.1 vs lib/rouge/lexers/scala.rb in rouge-3.6.0
- old
+ new
@@ -76,10 +76,10 @@
rule %r(
(#{keywords.join("|")})\b|
(<[%:-]|=>|>:|[#=@_\u21D2\u2190])(\b|(?=\s)|$)
)x, Keyword
- rule %r/:(?!#{op})/, Keyword, :type
+ rule %r/:(?!#{op})/, Keyword, :type
rule %r/(true|false|null)\b/, Keyword::Constant
rule %r/(import|package)(\s+)/ do
groups Keyword, Text
push :import
end