lib/faml/text_compiler.rb in faml-0.2.16 vs lib/faml/text_compiler.rb in faml-0.3.0

- old
+ new

@@ -1,8 +1,8 @@ require 'strscan' require 'faml/error' -require 'faml/parser_utils' +require 'haml_parser/utils' module Faml class TextCompiler class InvalidInterpolation < Error end @@ -57,10 +57,10 @@ INTERPOLATION_BRACE = /[\{\}]/o def find_close_brace(scanner, lineno) pos = scanner.pos - depth = ParserUtils.balance(scanner, '{', '}') + depth = HamlParser::Utils.balance(scanner, '{', '}') if depth != 0 raise InvalidInterpolation.new(scanner.string, lineno) else scanner.string.byteslice(pos ... (scanner.pos-1)) end