diff --git a/lib/hamlit/compiler.rb b/lib/hamlit/compiler.rb index 1d679fe0..36f33f1a 100644 --- a/lib/hamlit/compiler.rb +++ b/lib/hamlit/compiler.rb @@ -34,8 +34,10 @@ module Hamlit compile_tag(node) when :plain compile_plain(node) - else + when :haml_comment [:multi] + else + raise InternalError.new("Unexpected node type: #{node.type}") end end @@ -62,5 +64,8 @@ module Hamlit def compile_plain(node) [:static, node.value[:text]] end + + class InternalError < RuntimeError + end end end