Closed gleamingthecube closed 8 years ago
It seems to be working fine. Do you have code sample using which I can reproduce the issue?
Have a look at https://github.com/stephens2424/php/blob/master/parser/parser.go#L225
There is no way that works. Something along the lines of e.Line = p.current.Begin.Line
does appear to work properly.
I think I broke this when I added support for multiple-file awareness in the parser.
Should be fixed now. Fixed the filenames too.
Parser errors always display line=0 instead of the real line number.