Skip to content

Scandinavian characters causing 'Error parsing file' #252

@theothornhill

Description

@theothornhill

Hello!

Using scandinavian letters in type names (like æ. ø å) causes elm-analyser to crash on the given file. More precisely, it fails to parse the file, showing a red squiggly line on the first line, both in emacs, vim and vscode.

example:

type Example
    = Båt
    | Øl

(As a side-note, I see syntax highlighting here on github fails on this as well ;))

It works if I do this:

type Example
    = Baat
    | Oel

The version I am using of things are:

  • Node 10.21.0
  • Elm 0.19.1
  • Elm-analyser 0.16.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions