If the inheritance syntax is used the line number isn't incremented.
Meaning, if rune == '\n' here, then p.line needs to be incremented:
I'd add that before the successful return at the end of the function, so that if an error is reported it points at the correct line:
if inherited {
p.line++
}
return key, cutset, inherited, nil
}
If the inheritance syntax is used the line number isn't incremented.
Meaning, if
rune == '\n'here, thenp.lineneeds to be incremented:compose-go/dotenv/parser.go
Line 120 in 9d0d133
I'd add that before the successful return at the end of the function, so that if an error is reported it points at the correct line: