lib/rouge/lexers/rust.rb in rouge-3.23.0 vs lib/rouge/lexers/rust.rb in rouge-3.24.0
- old
+ new
@@ -97,9 +97,10 @@
rule %r(<->), Keyword
rule %r/[()\[\]{}|,:;]/, Punctuation
rule %r/[*\/!@~&+%^<>=\?-]|\.{2,3}/, Operator
rule %r/([.]\s*)?#{id}(?=\s*[(])/m, Name::Function
+ rule %r/[.]\s*await\b/, Keyword
rule %r/[.]\s*#{id}/, Name::Property
rule %r/[.]\s*\d+/, Name::Attribute
rule %r/(#{id})(::)/m do
groups Name::Namespace, Punctuation
end