Open
Description
We use this parser for a custom linter that we ship through a VSCode extension (rustpython_parser::ast::Suite::parse_without_path
). The VSCode extension api expects byte positions to the text encoded in utf-16, but the parser returns the byte positions to text encoded in utf-8. Can we add an option to use utf-16 encoded byte positions?
I'd be happy to implement this feature if you're comfortable with adding it to the parser. Do you have suggestions on how the API should look like?
Metadata
Metadata
Assignees
Labels
No labels