aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tests/ui (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Improve error for invalid name used in `endmacro`Libravatar Guillaume Gomez2023-10-251-1/+2
|
* Improve error for invalid name used in `endblock`Libravatar Guillaume Gomez2023-10-251-1/+2
|
* Add test specifically for named blocks, and named macrosLibravatar Guillaume Gomez2023-10-234-0/+32
|
* Pass `Node` parsing level to expressionsLibravatar René Kijewski2023-09-281-2/+2
|
* Limit nesting in parser nodes, tooLibravatar René Kijewski2023-09-282-0/+129
|
* Fix parsing arraysLibravatar René Kijewski2023-07-312-7/+3
| | | | | | | | | | | | | | | | 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.
* Fix parsing callsLibravatar René Kijewski2023-07-311-2/+2
| | | | | | | This change: * adds a cut when the leading `(` was encountered, and * fixed the interaction between call expressions and boolean OR.
* Update `ui` test for trybuild 1.0.76Libravatar René Kijewski2023-01-241-1/+1
| | | | | | | | In <https://github.com/dtolnay/trybuild/pull/219> the output of error messages was subtly changed, because they introduced a subdirectoy in their temp path. This PR fixes the mismatch between the expected and the actual output.
* Remove `panic!()` in `loop.cycle([])`Libravatar René Kijewski2022-01-312-0/+22
|
* Make is_shadowing_variable() failableLibravatar René Kijewski2022-01-311-3/+3
|
* Allow comments in `{% match %}` and remove panic!Libravatar René Kijewski2022-01-312-0/+28
|
* Add unit tests if there is one `#[template(…)]`Libravatar René Kijewski2022-01-134-0/+36
|
* Fix tests for new error messages in Rust nightlyLibravatar René Kijewski2021-12-0115-1/+27
|
* Implement {{loop.cycle(…)}} similar to JinjaLibravatar René Kijewski2021-11-112-0/+20
|
* Ensure that {%break%} is only used inside of a loopLibravatar René Kijewski2021-08-302-0/+19
|
* Better error messages using cutsLibravatar René Kijewski2021-07-302-0/+19
|
* Use "target()" to parse "when" blockLibravatar René Kijewski2021-07-302-0/+18
| | | | | | | | | | | | `target()` as used in parsing "let" and "if let" implements parsing nested tuples and structs. But it does not implement parsing literals. The functions `match_variant()` and `with_parameters()` as used in parsing "when" blocks do not implement parsing nested structs, but it implements parsing literals. This PR combines `match_variant()` and `with_parameters()` into `target()`, so that all `{%when%}` support nested structs, too.
* Fix expected error message for missing fileLibravatar René Kijewski2021-07-024-0/+8
| | | | | | | | | rust-lang/rust#82069 made error message that stem macro invocations more verbose. Since Rust 1.54 (currently in beta) the message includes the name of the offending macro. This PR uses version_check to select the appropriate expected error message.
* Use `syn::Error::to_compile_error` and add trybuild ui test (#374)Libravatar msrd02020-11-022-0/+15