From 696561003d9caaf5d1fd537d6a0f4f88fccca8ce Mon Sep 17 00:00:00 2001 From: PizzasBear <43722034+PizzasBear@users.noreply.github.com> Date: Wed, 22 Nov 2023 17:09:33 +0200 Subject: Add better support for rust-like number literals (#908) Signed-off-by: max --- testing/templates/num-literals.html | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 testing/templates/num-literals.html (limited to 'testing/templates/num-literals.html') diff --git a/testing/templates/num-literals.html b/testing/templates/num-literals.html new file mode 100644 index 0000000..90b07db --- /dev/null +++ b/testing/templates/num-literals.html @@ -0,0 +1,11 @@ +{% let plain_int = 9__0__ -%} +{% let neg_int = -9__0__isize -%} +{% let suffix_int = 9__0__i32 -%} +{% let bin_int = 0b__1__0__ -%} +{% let oct_int = 0o__7__0__ -%} +{% let hex_int = 0x__f__0__ -%} +{% let plain_float = 1__0__.5__0__ -%} +{% let suffix_float = 1__0__.5__0__f32 -%} +{% let exp_float = 1__0__e+__1__0__f32 -%} +{% let dotexp_float = 1__0__.5__0__e+__1__0__f32 -%} +[{{ plain_int }}, {{ neg_int }}, {{ suffix_int }}, {{ bin_int }}, {{ oct_int }}, {{ hex_int }}, {{ plain_float }}, {{ suffix_float }}, {{ exp_float }}, {{ dotexp_float }}] -- cgit