Line numbers for all parse errors

This commit is contained in:
Florian Weingarten
2014-10-03 21:00:31 +00:00
parent b79c9cb9bf
commit 584b492e70
3 changed files with 84 additions and 29 deletions
+1
View File
@@ -18,6 +18,7 @@ module Liquid
def set_line_number_from_token(token)
return unless token.respond_to?(:line_number)
return if self.line_number
self.line_number = token.line_number
end