[vim/vim] runtime(python): Add f-strings (PR #17548)

27 views
Skip to first unread message

Rob B

unread,
Jun 15, 2025, 9:09:28 AMJun 15
to vim/vim, Subscribed

In scope for this change:

  • Highlight replacement fields in f-strings including separate matchgroup for delimiters
  • Handle multiline fields, comments, nested fields and nested quotes

Not in scope:

  • Highlight syntax inside replacement fields

Reference: #14033


You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/17548

Commit Summary

  • e5224ff runtime(python): Add f-strings

File Changes

(9 files)

Patch Links:


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/17548@github.com>

Christian Brabandt

unread,
Jun 15, 2025, 9:24:49 AMJun 15
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#17548)

this should go to @zvezdan


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/17548/c2973843478@github.com>

Rob B

unread,
Jun 15, 2025, 9:24:49 AMJun 15
to vim/vim, Push

@f4nb0y pushed 1 commit.

  • 3c2f412 Move new screendumps into correct directory


View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/17548/before/e5224ff44828a6b05c62b80ac2263cbdebc4b80d/after/3c2f412119d6b4ea93ab553cea7533d360494afe@github.com>

dkearns

unread,
Jun 15, 2025, 9:32:27 AMJun 15
to vim/vim, Subscribed
dkearns left a comment (vim/vim#17548)

I assume you've seen #14057 but the tests might be useful if you're intending a different implementation.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/17548/c2973854081@github.com>

Rob B

unread,
Jun 16, 2025, 8:09:17 AMJun 16
to vim/vim, Subscribed
f4nb0y left a comment (vim/vim#17548)

@dkearns said

I assume you've seen #14057 but the tests might be useful if you're intending a different implementation.

Thanks for the pointer. Those tests are more ambitious than this PR, so it will take a few days for me to check them all.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/17548/c2976366912@github.com>

Rob B

unread,
Jun 22, 2025, 6:17:31 PMJun 22
to vim/vim, Push

@f4nb0y pushed 1 commit.

  • 5aa7ee8 Merge branch 'vim:master' into 20250615

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/17548/before/3c2f412119d6b4ea93ab553cea7533d360494afe/after/5aa7ee822ed0b30006ea190b70a58563397f9da2@github.com>

Rob B

unread,
Jun 28, 2025, 11:29:43 PMJun 28
to vim/vim, Push

@f4nb0y pushed 1 commit.

  • 3dcecd2 Merge branch 'vim:master' into 20250615

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/17548/before/5aa7ee822ed0b30006ea190b70a58563397f9da2/after/3dcecd23e46d20a2bdc2dac88b512441889238a0@github.com>

Rob B

unread,
Jul 1, 2025, 8:11:57 AMJul 1
to vim/vim, Push

@f4nb0y pushed 1 commit.

  • 850a231 Merge branch 'vim:master' into 20250615

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/17548/before/3dcecd23e46d20a2bdc2dac88b512441889238a0/after/850a2316d9825f47e65bab4f249cbae508969d3a@github.com>

Rob B

unread,
Jul 9, 2025, 7:00:48 AMJul 9
to vim/vim, Push

@f4nb0y pushed 1 commit.

  • 0c5b89a Merge branch 'master' into 20250615

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/17548/before/850a2316d9825f47e65bab4f249cbae508969d3a/after/0c5b89a73ef07c83e1b64c9dfa265ba8152ad544@github.com>

Rob B

unread,
Jul 10, 2025, 7:57:30 PMJul 10
to vim/vim, Subscribed
f4nb0y left a comment (vim/vim#17548)

See #14033 (comment)


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/17548/c3059598702@github.com>

Rob B

unread,
Jul 10, 2025, 7:57:32 PMJul 10
to vim/vim, Subscribed

Closed #17548.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/17548/issue_event/18575622183@github.com>

Reply all
Reply to author
Forward
0 new messages