diff options
author | René Kijewski <kijewski@library.vetmed.fu-berlin.de> | 2022-01-04 20:55:18 +0100 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2022-01-06 16:29:47 +0100 |
commit | af552ee3744016ac1db741888318649a64dfee50 (patch) | |
tree | e071ec74787a6ce397a0b8d232159a121e54560a /testing/templates/tuple-attr.html | |
parent | 803d32cd46245d72884ad1b251964906fd50dd00 (diff) | |
download | askama-af552ee3744016ac1db741888318649a64dfee50.tar.gz askama-af552ee3744016ac1db741888318649a64dfee50.tar.bz2 askama-af552ee3744016ac1db741888318649a64dfee50.zip |
Optimize parsing of ranges
Right now almost every expression needs to be parsed twice: `expr_any()`
first parses the left-hand side of a range expression, and if no `..`
or `..=` was found the left-hand expression is parsed again, this time
as the result of the function.
This diff removes the second parsing step by first looking for
`.. (opt rhs)`, then for `lhs .. (opt rhs)`.
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions