python-syntax icon indicating copy to clipboard operation
python-syntax copied to clipboard

Create highlight groups for string literal prefixes (f, r, b, …) and (keyword) args

Open sscherfke opened this issue 7 years ago • 2 comments
trafficstars

In sublime text, the string literal prefixes (e.g, the "f" in f'a string') and function arguments (names and values) are separate highlight groups:

It would be nice if we could have this in vim, too. :)

sscherfke avatar Aug 29 '18 12:08 sscherfke

Certainly could be added. Send a PR if you're interested in contributing!

nfnty avatar Jan 09 '19 16:01 nfnty

I second this. As an addendum, it would also be nice to have groups for the quotes themselves, like the default python.vim does (pythonQuotes, https://github.com/vim/vim/blob/master/runtime/syntax/python.vim#L137).

qwenger avatar Dec 26 '20 02:12 qwenger