Groups
Groups
Sign in
Groups
Groups
vim_dev
Conversations
About
Send feedback
Help
Commit: runtime(python): Highlight f-strings in Python
1 view
Skip to first unread message
Christian Brabandt
unread,
Jul 17, 2025, 3:30:16 PM
7/17/25
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to vim...@googlegroups.com
runtime(python): Highlight f-strings in Python
Commit:
https://github.com/vim/vim/commit/b7fc24d3a3d21ccf1461c703eb7ff07ef3994c54
Author: Rob B <
git...@0x7e.net
>
Date: Thu Jul 17 21:22:40 2025 +0200
runtime(python): Highlight f-strings in Python
fixes:
https://github.com/vim/vim/issues/10734
fixes:
https://github.com/vim/vim/issues/14033
closes: #17767
Signed-off-by: Rob B <
git...@0x7e.net
>
Signed-off-by: Zvezdan Petkovic <
zpet...@acm.org
>
Signed-off-by: Christian Brabandt <
c...@256bit.org
>
diff --git a/runtime/syntax/python.vim b/runtime/syntax/python.vim
index 759af2d4f..012f11140 100644
--- a/runtime/syntax/python.vim
+++ b/runtime/syntax/python.vim
@@ -1,7 +1,7 @@
" Vim syntax file
" Language: Python
" Maintainer: Zvezdan Petkovic <
zpet...@acm.org
>
-" Last Change: 2025 Jul 14
+" Last Change: 2025 Jul 17
" Credits: Neil Schemenauer <
n...@python.ca
>
" Dmitry Vasiliev
" Rob B
@@ -156,6 +156,33 @@ syn region pythonRawString matchgroup=pythonTripleQuotes
\ start=+[rR]\z('''\|"""\)+ end="\z1" keepend
\ contains=pythonSpaceError,pythonDoctest,@Spell
+" Formatted string literals (f-strings)
+"
https://docs.python.org/3/reference/lexical_analysis.html#f-strings
+syn region pythonFString
+ \ matchgroup=pythonQuotes
+ \ start=+
Reply all
Reply to author
Forward
0 new messages