ignatov / intellij-erlang

Erlang IDE
https://www.jetbrains.com/help/idea/2018.2/getting-started-with-erlang.html
Other
735 stars 120 forks source link

Underscores in numbers show as error #929

Open SackCastellon opened 4 years ago

SackCastellon commented 4 years ago

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