Skip to content

Commit

Permalink
Correcting binary number literal (#133)
Browse files Browse the repository at this point in the history
* Do not highlight "0B" prefix because it's incorrect syntax
  for Elixir.
* Add support for underscore separator.

Fixes #129
  • Loading branch information
thanabodee-c authored Aug 22, 2020
1 parent d178ba1 commit 76312e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syntaxes/elixir.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
"name": "variable.other.constant.elixir"
},
{
"match": "\\b(0[xX]\\h(?>_?\\h)*|\\d(?>_?\\d)*(\\.(?![^[:space:][:digit:]])(?>_?\\d)*)?([eE][-+]?\\d(?>_?\\d)*)?|0[bB][01]+|0o[0-7][_0-7]*[0-7]+)\\b",
"match": "\\b(0[xX]\\h(?>_?\\h)*|\\d(?>_?\\d)*(\\.(?![^[:space:][:digit:]])(?>_?\\d)*)?([eE][-+]?\\d(?>_?\\d)*)?|0b[01](?:[_01]*[01]+|[01]*)|0o[0-7][_0-7]*[0-7]+)\\b",
"name": "constant.numeric.elixir"
},
{
Expand Down

0 comments on commit 76312e7

Please sign in to comment.