Fix grammar to return correct lineno