LucHermitte / lh-brackets

LH's bracketing system for vim
Other
51 stars 2 forks source link

Python: annoying "for" abbreviation in list comprehension #3

Closed galou closed 8 years ago

galou commented 8 years ago

In Python's list comprehension ([v for v in mylist]), for gets exanded to for : and a newline is added. This is not the expected behavior. The same applies for a = b if b else 0.

LucHermitte commented 8 years ago

Oh. My mistake. There is indeed a bug, and my snippets should not be shipped with lh-brackets.