mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-17 01:40:42 -07:00
put line number in parentheses
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user