Skip to content

Add line/column number in tokens from HTMLTokenizer #87

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Naddiseo opened this issue Jul 6, 2013 · 1 comment
Open

Add line/column number in tokens from HTMLTokenizer #87

Naddiseo opened this issue Jul 6, 2013 · 1 comment

Comments

@Naddiseo
Copy link

Naddiseo commented Jul 6, 2013

Would it be possible to add line and column tracking to the tokens returned from HTMLTokenizer?

@gsnedders
Copy link
Member

Currently the parser uses, for error handling, self.errors.append((self.tokenizer.stream.position(), errorcode, datavars)) (i.e., getting the position from the stream!). It would be important to ensure that adding position to all tokens, even as an option, does not regress performance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants