Skip to content

Commit

Permalink
Also parse d.dde+-dd
Browse files Browse the repository at this point in the history
  • Loading branch information
toots committed May 19, 2024
1 parent 8f94773 commit 48f4e93
Show file tree
Hide file tree
Showing 3 changed files with 2,659 additions and 2,642 deletions.
4 changes: 2 additions & 2 deletions grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ module.exports = grammar({
float: $ =>
choice(
$._float_no_lbra,
/-?([\d][\d_]*)?\.[\d][\d_]*/,
seq($._float_exp, /[\d][\d_]*/)
/-?([\d][\d_]*)?\.[\d][\d_]*([eE][-+]?[\d][\d_]*)?/,
seq($._float_exp, /[\d][\d_]*/),
),

version: $ => /[\d][\d_]*\.[\d][\d_]*\.[\d][\d_]*/,
Expand Down
2 changes: 1 addition & 1 deletion src/grammar.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 48f4e93

Please sign in to comment.