vim-python / python-syntax

Python syntax highlighting for Vim
MIT License
438 stars 84 forks source link

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

Open sscherfke opened 5 years ago

sscherfke commented 5 years ago

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. :)

nfnty commented 5 years ago

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

qwenger commented 3 years ago

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).