Skip to content
This repository was archived by the owner on Sep 20, 2021. It is now read-only.
This repository was archived by the owner on Sep 20, 2021. It is now read-only.

Incorrect calculation of line and position in utf-8 filesΒ #78

@SerafimArts

Description

@SerafimArts

Example code with an error on the last line:

type A {
    some(arg: String = "😺 😸 😹 😻 😼 😽 πŸ™€ 😿 😾"): Any
}

😿

Expected (line 5 and column 1):

Unrecognized token "😿" at line 5 and column 1:
😿
↑ <- arrow here

Actual (line 1 and column 89):

Unrecognized token "😿" at line 1 and column 89:
type A {
    some(arg: String = "😺 😸 😹 😻 😼 😽 πŸ™€ 😿 😾"): Any
}

😿some

                                                             ↑ <- arrow here

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions