Skip to content

Commit e1b414d

Browse files
authored
[dart mode] Support digit separators
1 parent dd44c94 commit e1b414d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mode/dart/dart.js

+2
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@
4444
blockKeywords: set(blockKeywords),
4545
builtin: set(builtins),
4646
atoms: set(atoms),
47+
// clike numbers without the suffixes, and with '_' separators.
48+
number: /^(?:0x[a-f\d_]+|(?:[\d_]+\.?[\d_]*|\.[\d_]+)(?:e[-+]?[\d_]+)?)/i,
4749
hooks: {
4850
"@": function(stream) {
4951
stream.eatWhile(/[\w\$_\.]/);

0 commit comments

Comments
 (0)