Skip to content

Unicode characters cause incorrect error diagnostics#439

Description

@LightAndLight

test.ipso:

test_1 : String
test_1 = "馃搧 馃搫 "

test_2 : String
test_2 = ~

Expected output:

$ ipso --check test.ipso
test.ipso:5:4: error: expected one of: constructor, identifier, case, if, true, false, let, comp, integer, '"', ', '{', '(', '[', '\', '`', (|
  |
5 | test_2 = ~
  |    ^

Actual output:

$ ipso --check test.ipso
test.ipso:5:10: error: expected one of: constructor, identifier, case, if, true, false, let, comp, integer, '"', ', '{', '(', '[', '\', '`', (|
  |
5 | test_2 = ~
  |          ^

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions