~singpolyma/dhall-ruby

30af26234de1b50b984706ef6397267d819811e8 — Stephen Paul Weber 4 years ago ef67435
A whitespace-only last line is still an indent
1 files changed, 1 insertions(+), 1 deletions(-)

M lib/dhall/parser.rb
M lib/dhall/parser.rb => lib/dhall/parser.rb +1 -1
@@ 276,7 276,7 @@ module Dhall
			def value
				chunks = capture(:single_quote_continue).value
				raw = chunks.join
				indent = raw.scan(/^[ \t]*(?=[^ \t\n])/).map(&:chars)
				indent = raw.scan(/^[ \t]*(?=[^ \t\n]|\Z)/).map(&:chars)
				            .reduce(&Util.method(:longest_common_prefix))&.length.to_i
				indent = 0 if raw.end_with?("\n")