Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lexer: TOML: Support more integer and floating formats (#1832)
* Fix floating point format in TOML lexer in TOML, the decimal point must be surrounded by at least one digit on each side. * Support sign of number in TOML lexer * Support special float (nan/inf) in TOML lexer * Support hex, oct, bin integers in TOML lexer * Support underscores between digits in TOML lexer * Add more int/float examples to TOML visual sample * Use Num::Oct and non-captured group for oct int Co-authored-by: Tan Le <tan.le@hey.com> * Use Num::Bin and non-captured group for bin int Co-authored-by: Tan Le <tan.le@hey.com> * Use Num::Hex and non-captured group for hex int Co-authored-by: Tan Le <tan.le@hey.com> * Use non-captured group if capture is not needed Co-authored-by: Tan Le <tan.le@hey.com> * Use non-captured group if capture is not needed Co-authored-by: Tan Le <tan.le@hey.com> * Use non-captured group if capture is not needed Co-authored-by: Tan Le <tan.le@hey.com> Co-authored-by: Tan Le <tan.le@hey.com>
- Loading branch information