lib/rouge/lexers/tex.rb in rouge-1.1.0 vs lib/rouge/lexers/tex.rb in rouge-1.2.0
- old
+ new
@@ -28,13 +28,10 @@
rule /\$\$/, Punctuation, :displaymath
rule /\$/, Punctuation, :inlinemath
rule /\\(begin|end)\{.*?\}/, Name::Tag
rule /(\\verb)\b(\S)(.*?)(\2)/ do |m|
- group Name::Builtin
- group Keyword::Pseudo
- group Str::Other
- group Keyword::Pseudo
+ groups Name::Builtin, Keyword::Pseudo, Str::Other, Keyword::Pseudo
end
rule command, Keyword, :command
mixin :general
rule /[^\\$%&_^{}]+/, Text