put line number in parentheses

This commit is contained in:
Florian Weingarten
2014-09-05 14:12:30 +00:00
parent 27c1019385
commit 17cc8fdbb3
4 changed files with 13 additions and 16 deletions
+2 -2
View File
@@ -8,7 +8,7 @@ module Liquid
begin
return strict_parse_with_error_context(markup)
rescue SyntaxError => e
e.line_number = markup.line_number if markup.is_a?(Token)
e.set_line_number_from_token(markup)
@warnings ||= []
@warnings << e
return lax_parse(markup)
@@ -28,4 +28,4 @@ module Liquid
" in \"#{markup.strip}\""
end
end
end
end