0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00
Files
vim/runtime/syntax/testdir/dumps/python_strings_bytes_07.dump
Doug Kearns 6bb16d2cee 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>
2025-09-08 15:27:30 -04:00

21 lines
1.7 KiB
Plaintext

| +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|+| |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
|t|e|s|t| |=| |f+0#e000002&|"|H|e| |s|a|i|d| |h|i|s| |n|a|m|e| |i|s| |{+0#e000e06&|n+0#0000000&|a|m|e|!+0#e000e06&|r|}|.+0#e000002&|"| +0#0000000&@35
|t|e|s|t| |=| |f+0#e000002&|"|H|e| |s|a|i|d| |h|i|s| |n|a|m|e| |i|s| |{+0#e000e06&|r+0#00e0e07&|e|p|r|(+0#0000000&|n|a|m|e|)|}+0#e000e06&|.+0#e000002&|"| +0#0000000&@31
|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|}@1|"+0#e000002&| +0#0000000&@41
|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|}|.|{|p|r|e|c|i|s|i|o|n|}@1|"+0#e000002&| +0#0000000&@29
|t|e|s|t| |=| |f+0#e000002&|"|r|e|s|u|l|t|:| |{+0#e000e06&|v+0#0000000&|a|l|u|e|:+0#e000e06&|{| +0#0000000&@49
| +0#e000e06&@7|w|i|d|t|h| +0#0000000&@61
| +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
@57|1@1|3|,|5| @8|5|6|%|