maud/maud_macros
Teodor Källman b3a98c98d5
Parse many literals along side idents in names ()
* Parse many literals along side idents in names

* Accept ints as literals

We will not accept floats because `123.123` is a float literal,
but `123 .123` is a int literal followed by a class called `123`.
This could be confusing so it will not be accepted.

Ints can have leading zeros, like `0123`, but this is not guarranteed by
the rust compiler to always work, which could cause future errors.
An example would be truncating `001` to `1`.

* Limit accepted literals using existing function

* Update error output for non-string-literal

* Test output of ints with specified type

This outputs exactly what is written, which is the obvious behaviour

* Use nightly version to generate output

Previous verison was not using nightly, causing errors in the automated
test that are using nightly

* Replace "byte_string" with "raw_string" in test

---------

Co-authored-by: Chris Wong <lambda.fairy@gmail.com>
2024-01-04 15:32:25 +11:00
..
src Parse many literals along side idents in names () 2024-01-04 15:32:25 +11:00
Cargo.toml Upgrade to syn 2.0.0 () 2023-11-26 15:56:12 +11:00