lib/faml/parser.rb in faml-0.2.13 vs lib/faml/parser.rb in faml-0.2.14
- old
+ new
@@ -184,9 +184,11 @@
if @ast.is_a?(Ast::HtmlComment) && !@ast.comment.empty?
syntax_error!('Illegal nesting: nesting within a html comment that already has content is illegal.')
end
if @ast.is_a?(Ast::HamlComment)
@indent_tracker.enter_comment!
+ else
+ @indent_tracker.check_indent_level!(@line_parser.lineno)
end
nil
end
def indent_leave(indent_level, text)