allow dots in defined() (#20010)

* allow dots in defined()

refs https://github.com/nim-lang/RFCs/issues/181

* mention accents in older versions
This commit is contained in:
metagn 2022-07-12 19:03:58 +03:00 • committed by GitHub
commit 5c510a9ab9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 33 additions and 3 deletions

View file

@ -101,6 +101,9 @@ becomes an alias for `addr`.
- Full command syntax and block arguments i.e. `foo a, b: c` are now allowed
for the right-hand side of type definitions in type sections. Previously
they would error with "invalid indentation".
- `defined` now accepts identifiers separated by dots, i.e. `defined(a.b.c)`.
In the command line, this is defined as `-d:a.b.c`. Older versions can
use accents as in ``defined(`a.b.c`)`` to access such defines.
## Compiler changes