Files
Nim/tests/pragmas
Jake Leahy 4fdc6c49bd Don't process a user pragma if its invalid (#23041)
When running `check`/`suggest` in a file with an invalid user pragma
like
```nim
{.pragma foo: test.}
```
It will continue to try and process it which leads to the compiler
running into a `FieldDefect`
```
fatal.nim(53)            sysFatal
Error: unhandled exception: field 'sons' is not accessible for type 'TNode' using 'kind = nkIdent' [FieldDefect]
```
This makes it instead bail out trying to process the user pragma if its
invalid
2023-12-07 08:14:23 +01:00
..
2020-11-09 11:46:25 +01:00
2022-09-23 13:05:05 +02:00
2020-12-28 14:13:21 +01:00
2022-09-23 13:05:05 +02:00
2017-07-25 09:28:23 +02:00
2018-12-27 22:40:09 +01:00
2021-09-02 12:10:14 +02:00
2014-01-20 20:07:44 +01:00