+29
−0
Loading
There are two changes here. One is to pass tracking=True to our parser. This makes it properly track positions of all productions, not just of lexer tokens. The second is to properly count up our newlines in the lex data, since the lexer seems to report the line number of the start of the lex data, which is always 1 in our case.