differentmatt / filbert

JavaScript parser of Python
Other
133 stars 27 forks source link

triple quoted comment blocks #21

Closed nemoyatpeace closed 8 years ago

nemoyatpeace commented 10 years ago

My favorite way to comment out a block of code is to put triple quotes around it, this doesn't seem to work with the parser:

'''
This 
is
all
comments.
'''
differentmatt commented 10 years ago

Thanks for the feedback. We should add this.

Implementation note: docstrings must be indented properly, unlike comments.

http://stackoverflow.com/questions/11860064/indentationerror-from-comment-in-python https://docs.python.org/3.4/tutorial/controlflow.html#documentation-strings

Xavion3 commented 8 years ago

This should be fixed by #75 which added support for triple quoted strings.