Closed seizethedave closed 7 years ago
That is, if I use
{{ import "..."; }}
and get a syntax error later in the spec, the reported line number is off by approximately the number of lines occupied by the spec syntax escape.
Ugh good point.
This is an instance of PLY's terrible interface. I think in parse.py, the t_EXTERNCODETOKEN rule needs to update t.lexer.lineno appropriately, like t_newline does.
parse.py
t_EXTERNCODETOKEN
t.lexer.lineno
t_newline
That is, if I use
and get a syntax error later in the spec, the reported line number is off by approximately the number of lines occupied by the spec syntax escape.