Skip to content

Commit

Permalink
[dart mode] Support digit separators
Browse files Browse the repository at this point in the history
  • Loading branch information
srawlins committed Sep 5, 2024
1 parent dd44c94 commit e1b414d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mode/dart/dart.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
blockKeywords: set(blockKeywords),
builtin: set(builtins),
atoms: set(atoms),
// clike numbers without the suffixes, and with '_' separators.
number: /^(?:0x[a-f\d_]+|(?:[\d_]+\.?[\d_]*|\.[\d_]+)(?:e[-+]?[\d_]+)?)/i,
hooks: {
"@": function(stream) {
stream.eatWhile(/[\w\$_\.]/);
Expand Down

0 comments on commit e1b414d

Please sign in to comment.