put
/filter
: Error when comment on last line of DSL expression with no final newline
#1214
Labels
put
/filter
: Error when comment on last line of DSL expression with no final newline
#1214
Miller throws an error when the last line of a DSL expression file used with
put
andfilter
verbs contains a comment.Example:
Contents of
testing.mlr
:Error message:
This is the same error that occurs when an inline expression ends with a comment and is closed on the same line:
Of course, this is because everything to the end of the line is part of the comment (including the closing single-quote). Adding a newline after the comment resolves the issue:
As files are separate entities of sorts, perhaps a trailing newline could be added automatically by Miller when pulling in expressions from external files?
Thanks.
The text was updated successfully, but these errors were encountered: