Show line with syntax error
When a syntax error is encountered, show the affected line contents as well as its line number. For example, with the m
command before it was supported (in e.g. fc5ddd90):
r r1 1k n1 n2
l l1 10u n2 gnd
l l2 40u n3 gnd # winding ratio 1:2
m m1 .95 l1 l2
r r2 1k n3 gnd
freq log 1 1M 1000
uinput n1
uoutput n3
circuit.liso.base.LisoParserError: LISO syntax error: unexpected parameter count (4) (line 1013)
This should instead say something like
circuit.liso.base.LisoParserError: LISO syntax error: unexpected parameter count (4) near "..." (line 1013)
Not sure if this affects existing tests which look for specific patterns of error message - best check first before making this change.