lib/rouge/lexers/erlang.rb in rouge-1.1.0 vs lib/rouge/lexers/erlang.rb in rouge-1.2.0

- old
+ new

@@ -73,17 +73,14 @@ rule(operators, Operator) rule(/"/, Str, :string) rule(/<</, Name::Label) rule(/>>/, Name::Label) rule %r{(#{atom_re})(:)} do - group Name::Namespace - group Punctuation + groups Name::Namespace, Punctuation end rule %r{(?:^|(?<=:))(#{atom_re})(\s*)(\()} do - group Name::Function - group Text - group Punctuation + groups Name::Function, Text, Punctuation end rule(%r{[+-]?#{base_re}#[0-9a-zA-Z]+}, Num::Integer) rule(/[+-]?\d+/, Num::Integer) rule(/[+-]?\d+.\d+/, Num::Float) rule(%r{[\]\[:_@\".{}()|;,]}, Punctuation) @@ -102,20 +99,14 @@ rule(/~/, Str) end state :directive do rule %r{(define)(\s*)(\()(#{macro_re})} do - group Name::Entity - group Text - group Punctuation - group Name::Constant + groups Name::Entity, Text, Punctuation, Name::Constant pop! end rule %r{(record)(\s*)(\()(#{macro_re})} do - group Name::Entity - group Text - group Punctuation - group Name::Label + groups Name::Entity, Text, Punctuation, Name::Label pop! end rule(atom_re, Name::Entity, :pop!) end end