Skip to content

Commit

Permalink
[dart mode] Support digit separators
Browse files Browse the repository at this point in the history
srawlins authored Sep 5, 2024

Verified

This commit was signed with the committer’s verified signature. The key has expired.
mmarchini mary marchini
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
@@ -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\$_\.]/);

1 comment on commit e1b414d

@Cochun08
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can i get the code

Please sign in to comment.