Skip to content

Input iterator's column data member doesn't account for multibyte characters (UTF-8) #369

@catsidhe

Description

@catsidhe

Unless I'm mistaken, column currently counts bytes. I ended up re-calculating the column by walking back from data until I see a newline character or reach the beginning of the content, counting characters while ignoring non-first UTF-8 bytes. Would've been nicer if it was handled by PEGTL.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions