Do not require a newline before line statements

As we discovered in the tests, the logic for line statements only
enforces that when they are found, the remaining portion of the line
is treated as a statement declaration. This means that a line statement
can follow things such as text, which the grammar did not previously
allow. The grammar also did not allow a line statement to be the first
line in a file, wich this change also now supports. All non-newline
whitespace preceding the line statement will continue to be stripped.
This commit is contained in:
Kevin Brown 2020-05-15 22:27:06 -04:00
parent adc2dce109
commit f11698df16

View File

@ -115,7 +115,7 @@ line_block_end
line_block_open
=
"\n" {SP}* line_block_open_symbol {SP}*
{ !"\n" SP }* line_block_open_symbol { !"\n" SP }*
;
line_block_open_symbol