lib/rouge/lexers/cpp.rb in rouge-3.29.0 vs lib/rouge/lexers/cpp.rb in rouge-3.30.0
- old
+ new
@@ -69,9 +69,10 @@
rule %r/0[0-7]('?[0-7])*[lu]*/i, Num::Oct
rule %r/#{dq}[lu]*/i, Num::Integer
rule %r/\bnullptr\b/, Name::Builtin
rule %r/(?:u8|u|U|L)?R"([a-zA-Z0-9_{}\[\]#<>%:;.?*\+\-\/\^&|~!=,"']{,16})\(.*?\)\1"/m, Str
rule %r/(::|<=>)/, Operator
+ rule %r/[{}]/, Punctuation
end
state :classname do
rule id, Name::Class, :pop!