lib/rouge/lexers/cpp.rb in rouge-3.26.0 vs lib/rouge/lexers/cpp.rb in rouge-3.26.1

- old
+ new

@@ -57,10 +57,10 @@ dq = /\d('?\d)*/ prepend :statements do rule %r/(class|struct)\b/, Keyword, :classname rule %r/template\b/, Keyword, :template - rule %r/\d+(\.\d+)?(?:h|(?:min)|s|(?:ms)|(?:us)|(?:ns))/, Num::Other + rule %r/#{dq}(\.#{dq})?(?:y|d|h|(?:min)|s|(?:ms)|(?:us)|(?:ns)|i|(?:if)|(?:il))\b/, Num::Other rule %r((#{dq}[.]#{dq}?|[.]#{dq})(e[+-]?#{dq}[lu]*)?)i, Num::Float rule %r(#{dq}e[+-]?#{dq}[lu]*)i, Num::Float rule %r/0x\h('?\h)*[lu]*/i, Num::Hex rule %r/0b[01]+('[01]+)*/, Num::Bin rule %r/0[0-7]('?[0-7])*[lu]*/i, Num::Oct