Closed nbari closed 7 years ago
Currently the only way to do it is by renaming pythonString
, pythonBytes
, pythonUniString
, pythonUniRawString
and pythonRawString
groups with the corresponding delimiters and then link new names to the Comment
group.
This can be done more easily with PR #55. Link pythonStringMultiline
, pythonRawStringMultiline
, and so on to the Comment
group.
Alternatively, you could highlight/link those differently than both strings and comments. I do that to make docstrings stand out.
how to mark starting and ending strings with """ or ''' as comment
currently as a workaround I added the following to the .vim/after/syntax/python.vim file
syn region Comment start=/"""/ end=/"""/ syn region Comment start=/'''/ end=/'''/