Si Chen
4e416ee730
jinja : parse unary +/- before variables ( #29244 )
...
* jinja : parse unary +/- before variables
Lexer already emits unary_operator for -n / +n, and runtime executes
unary -. Parse them at multiplicative precedence so slices like
items[:-n] and GigaChat indent[:-indent_factor] work.
* jinja : keep filters/tests outside unary operands
Unary +/- must bind only the primary/postfix operand so -n|abs is
(-n)|abs, not -(n|abs). Add unary + and filter/test regression coverage.
Signed-off-by: sinksilk <785976238@qq.com >
---------
Signed-off-by: sinksilk <785976238@qq.com >
2026-09-23 13:29:45 +02:00
..
2026-09-23 13:29:45 +02:00
2026-09-22 09:38:52 +02:00
2026-09-22 15:16:40 +02:00
2026-09-19 15:37:13 +03:00
2023-11-07 00:36:23 +03:00
2026-09-04 09:13:20 +03:00
2026-09-04 09:13:20 +03:00
2026-09-12 16:14:50 -05:00
2026-08-22 16:28:28 +02:00
2026-04-03 09:07:59 +03:00
2026-08-22 16:28:28 +02:00
2026-08-22 16:28:28 +02:00
2026-09-20 06:51:40 -05:00
2026-08-22 16:28:28 +02:00
2026-09-22 14:38:09 +02:00
2026-09-12 16:14:50 -05:00
2026-09-14 16:07:28 +02:00
2026-09-14 05:24:05 +02:00
2026-09-22 15:16:40 +02:00
2026-04-06 20:54:06 +02:00
2026-03-05 10:47:28 +01:00
2026-04-27 08:06:39 +03:00
2026-04-27 08:06:39 +03:00
2026-08-22 16:28:28 +02:00
2026-08-19 11:04:26 +02:00
2026-09-16 16:08:50 +05:30
2026-08-22 16:16:06 +02:00
2026-09-19 15:37:13 +03:00
2026-09-19 15:37:13 +03:00
2026-07-08 14:52:43 +02:00
2026-08-15 11:45:30 +02:00
2026-06-04 17:45:40 +02:00
2026-09-19 14:11:13 +02:00
2026-09-12 16:14:50 -05:00
2026-09-12 16:14:50 -05:00
2026-09-12 16:14:50 -05:00
2026-08-23 01:11:10 +02:00
2026-09-21 10:32:07 +02:00
2026-08-10 16:58:56 +03:00
2026-09-13 01:36:34 +02:00
2026-09-13 01:36:34 +02:00
2026-01-28 19:42:42 +02:00
2026-01-28 19:42:42 +02:00
2026-07-07 10:25:04 +03:00
2026-03-31 13:50:51 +02:00
2026-05-29 09:21:37 +03:00
2026-01-30 21:27:27 +02:00
2026-09-20 06:51:40 -05:00
2026-09-20 06:51:40 -05:00
2026-08-15 13:17:35 +02:00
2026-08-13 00:02:27 +02:00
2026-08-10 16:58:56 +03:00
2026-07-25 11:58:09 +02:00
2026-08-10 16:58:56 +03:00
2026-08-10 16:58:56 +03:00
2026-09-11 12:59:43 +02:00
2026-09-11 11:33:26 +03:00
2026-07-26 20:54:25 +02:00
2026-07-26 20:54:25 +02:00
2026-07-25 11:58:09 +02:00
2026-07-25 11:58:09 +02:00
2026-09-20 06:51:40 -05:00
2026-09-20 06:51:40 -05:00