mirror of
https://github.com/Instagram/LibCST.git
synced 2025-12-23 10:35:53 +00:00
For an expression like `f"{one:{two:}{three}}"`, `three` is not in an f-string spec, and should be tokenized accordingly.
This PR fixes the `format_spec_count` bookkeeping in the tokenizer, so it properly decrements it when a closing `}` is encountered but only if the `}` closes a format_spec.
Reported in #930.
|
||
|---|---|---|
| .. | ||
| libcst | ||
| libcst_derive | ||
| Cargo.lock | ||
| Cargo.toml | ||
| roundtrip.sh | ||