diff --git a/python/extractor/tsg-python/tsp/grammar.js b/python/extractor/tsg-python/tsp/grammar.js index a30ddb9f0a0..c53a67da126 100644 --- a/python/extractor/tsg-python/tsp/grammar.js +++ b/python/extractor/tsg-python/tsp/grammar.js @@ -1168,7 +1168,7 @@ module.exports = grammar({ _not_escape_sequence: $ => token.immediate('\\'), format_specifier: $ => seq( - ':', + token(prec(1,':')), repeat(choice( token(prec(1, /[^{}\n]+/)), alias($.interpolation, $.format_expression)