loc
loc copied to clipboard
Fix multiline comments for python
This PR fixes multiline comments for python (and for languages where begin and end strings are the same).
It does not fix #111 because python uses the same characters as comments for multiline strings (""", '''), but at least it fixes following cases:
'''
This is a module docstring
'''
a = 1
b = 2
c = 3
"""
This is a module docstring
"""
@cgag - shall I close this PR?