Skip to content
This repository has been archived by the owner on Mar 8, 2020. It is now read-only.

Properly handle Unicode positions #51

Merged
merged 1 commit into from
Jan 22, 2019
Merged

Properly handle Unicode positions #51

merged 1 commit into from
Jan 22, 2019

Conversation

dennwc
Copy link
Member

@dennwc dennwc commented Jan 22, 2019

Switch positional info processing from byte offsets to Unicode character indexes. Added a test case.

Also, enable token vs position info verification for some AST types. Will file issues for ones that fail (see TODOs in fixtures_test.go).

Fixes #25

Signed-off-by: Denys Smirnov denys@sourced.tech

Signed-off-by: Denys Smirnov <denys@sourced.tech>
@dennwc dennwc self-assigned this Jan 22, 2019
@dennwc dennwc merged commit f632724 into bblfsh:master Jan 22, 2019
@dennwc dennwc deleted the unicode branch January 22, 2019 17:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Multibyte characters break positions
2 participants