lib/rouge/lexers/haml.rb in rouge-1.1.0 vs lib/rouge/lexers/haml.rb in rouge-1.2.0
- old
+ new
@@ -80,11 +80,11 @@
rule(/%#{identifier}/) { token Name::Tag; goto :tag }
rule /!!!#{dot}*\n/, Name::Namespace, :pop!
rule %r(
(/) (\[#{dot}*?\]) (#{dot}*\n)
)x do
- group Comment; group Comment::Special; group Comment
+ groups Comment, Comment::Special, Comment
pop!
end
rule %r(/#{dot}*\n) do
token Comment
@@ -113,10 +113,10 @@
filter_name = m[1].strip
@filter_lexer = self.filters[filter_name]
@filter_lexer.reset! unless @filter_lexer.nil?
- debug { " haml: filter #{filter_name.inspect} #{@filter_lexer.inspect}" }
+ puts " haml: filter #{filter_name.inspect} #{@filter_lexer.inspect}" if @debug
end
mixin :eval_or_plain
end