Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

""" or ''' as comments #7

Closed
nbari opened this issue Aug 27, 2013 · 2 comments
Closed

""" or ''' as comments #7

nbari opened this issue Aug 27, 2013 · 2 comments

Comments

@nbari
Copy link

nbari commented Aug 27, 2013

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=/'''/

@hdima
Copy link
Owner

hdima commented Aug 31, 2013

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.

@jakar
Copy link

jakar commented Oct 7, 2016

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.

@nbari nbari closed this as completed Jun 14, 2017
anntzer pushed a commit to anntzer/python-syntax that referenced this issue Apr 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants