runtime(python): Update syntax file, fix f-string float highlighting

Fix matching of floats at the beginning of an f-string replacement
field, immediately after the opening brace.

The existing pattern, using `\zs`, cannot consume the already matched
`{` so use a lookbehind instead.

See comment: https://github.com/vim/vim/pull/17962#issuecomment-3201550443

closes: #18220

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Doug Kearns
2025-09-08 15:27:30 -04:00
committed by Christian Brabandt
parent fa6fd41a94
commit 6bb16d2cee
8 changed files with 32 additions and 31 deletions

View File

@@ -1,9 +1,10 @@
| +0&#ffffff0@3|1+0#e000002&| +0#0000000&|+| @67
@4|2+0#e000002&| +0#0000000&|+| @67
@4|3+0#e000002&|}+0#e000e06&|"+0#e000002&| +0#0000000&@67
|t|e|s|t| |=| |f+0#e000002&|"|F|l|o|a|t| |i|s| |{+0#e000e06&|1+0#e000002&|.|2|3|}+0#e000e06&|"+0#e000002&| +0#0000000&@49
|t|e|s|t| |=| |f+0#e000002&|"|a|b|c|{+0#e000e06&|a+0#0000000&| |#+0#0000e05&| |T|h|i|s| |i|s| |a| |c|o|m@1|e|n|t| |}| +0#0000000&@38
@4|+| |1+0#e000002&|}+0#e000e06&|"+0#e000002&| +0#0000000&@65
>t|e|s|t| |=| |f+0#e000002&|"|d|e|f|{+0#e000e06&|a+0#0000000&| |#+0#0000e05&| |S|o| |i|s| |t|h|i|s| |:| +0#0000000&@45
@4>+| |1+0#e000002&|}+0#e000e06&|"+0#e000002&| +0#0000000&@65
|t|e|s|t| |=| |f+0#e000002&|"|d|e|f|{+0#e000e06&|a+0#0000000&| |#+0#0000e05&| |S|o| |i|s| |t|h|i|s| |:| +0#0000000&@45
@4|+| |2+0#e000002&|}+0#e000e06&|"+0#e000002&| +0#0000000&@65
|t|e|s|t| |=| |f+0#e000002&|"|g|h|i|{+0#e000e06&|a+0#0000000&| |#+0#0000e05&| |A|n|d| |t|h|i|s| |"| +0#0000000&@47
@4|+| |3+0#e000002&|}+0#e000e06&|"+0#e000002&| +0#0000000&@65
@@ -16,5 +17,4 @@
| +0#e000e06&@3|}|.|{| +0#0000000&@67
| +0#e000e06&@7|p|r|e|c|i|s|i|o|n| +0#0000000&@57
| +0#e000e06&@3|}@1|"+0#e000002&| +0#0000000&@67
|t|e|s|t| |=| |f+0#e000002&|"|r|e|s|u|l|t|:| |{+0#e000e06&|v+0#0000000&|a|l|u|e|:+0#e000e06&|{|w|i|d|t|h|:|d|}|.|{|p|r|e|c|i|s|i|o|n|!|s|}@1|"+0#e000002&| +0#0000000&@25
@57|1@1|3|,|1| @8|5|6|%|
@57|1@1|3|,|5| @8|5|6|%|