13 Commits

Author SHA1 Message Date
René Kijewski
a0d99ba6fc Better spans 2025-08-19 17:41:20 +02:00
René Kijewski
e5189b933d Use Parser::[with_]span() to generate proc_macro::Span 2025-08-19 17:41:20 +02:00
Guillaume Gomez
fc2b0349ac Add ui test for generics on loop.cycle 2025-07-21 00:38:55 +02:00
René Kijewski
5e98580ae3 derive: highlight value, not key 2024-07-30 14:04:19 +02:00
René Kijewski
08674bde11 derive: without rendered message for now 2024-07-29 21:57:28 +02:00
René Kijewski
821a147b37 Doens't work: no indentation 2024-07-29 18:38:32 +02:00
René Kijewski
c3639ec14a derive: use source/path as error source span 2024-07-29 15:48:18 +02:00
René Kijewski
fa8c936cff derive: way less noisy error messages 2024-07-29 13:46:31 +02:00
René Kijewski
380ecc1d8e derive: properly display error locations 2024-07-29 05:05:00 +02:00
Guillaume Gomez
870565eb8e Update ui tests 2024-06-17 17:18:55 +02:00
René Kijewski
985eb8955f Fix parsing arrays
This change

* allows using empty arrays `[]` in expessions,
* adds a cut when the leading `[` was encountered, and
* fixes the interaction between arrays and boolean OR.

IMO the restriction that you couldn't use empty arrays is not needed.
The missing cut made error messages slictly worse if you forget to add
the closing `]`.

Filter expressions must not have white spaces before the pipe `|`. The
white space is used to tell a filter expressions, and `std::ops::Or`
apart.
2023-07-31 21:29:35 +02:00
René Kijewski
107bdfdd76 Fix parsing calls
This change:

* adds a cut when the leading `(` was encountered, and
* fixed the interaction between call expressions and boolean OR.
2023-07-31 21:29:35 +02:00
René Kijewski
84fe381403 Remove panic!() in loop.cycle([]) 2022-01-31 13:12:09 +01:00