Skip to content

Commit

Permalink
Merge pull request #267 from zhang-accounting/266-human-readable-numb…
Browse files Browse the repository at this point in the history
…er-should-be-supported

266 human readable number should be supported
  • Loading branch information
Kilerd authored Mar 26, 2024
2 parents 8c2c8a5 + eb336c0 commit 52eeda1
Show file tree
Hide file tree
Showing 4 changed files with 160 additions and 160 deletions.
2 changes: 1 addition & 1 deletion extensions/beancount/src/beancount.pest
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ space = _{ " " | "\t" }
line = _{ NEWLINE }

number = @{
("0" | ASCII_NONZERO_DIGIT ~ ASCII_DIGIT*) ~ ("." ~ ASCII_DIGIT*)? ~ (^"e" ~ ("+" | "-")? ~ ASCII_DIGIT+)?
("0" | ASCII_NONZERO_DIGIT ~ (ASCII_DIGIT | "," | "_")*) ~ ("." ~ ASCII_DIGIT*)? ~ (^"e" ~ ("+" | "-")? ~ ASCII_DIGIT+)?
}

number_expr = { expr_atom ~ (space* ~ expr_bin_op ~ space* ~ expr_atom)* }
Expand Down
Loading

0 comments on commit 52eeda1

Please sign in to comment.