ignatov/intellij-erlang

Underscores in numbers show as error

SackCastellon opened this issue · 0 comments

When writing a number with underscores, these are masked as errors:

main() ->
  X = 1_234.333_333,
  io:format("~p\n", [X]).

Number with underscore

However this code compiles and they are mentioned in the documentation:

Single underscore _ can be inserted between digits as a visual separator.

See: Erlang -- Data Types