language-python
language-python copied to clipboard
Property snippet produces invalid code if triggered as part of @property decorator
Apologies for not following the guidelines but I don't have the time to become fully acquainted with the atom debugging system and this has nothing to do with atom as a text editor, but rather the particular definition of a snippet. This means its pretty much fully explained by a gif with some bullet points.
The property snippet actively creates invalid code if activated when trying to use the property decorator:
3 issues just from glancing at this:
- the syntax of
@def foo
is strictly speaking, invalid. - the pattern is not the appropriate pattern for a property decorated function
- the indentation of the final line is not appropriately aligned, creating an indentation error
Note: #156 might address this but I don't know because I don't understand atom enough yet to test that out.