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

Parenthesis not matching with multi-line lambda logic statement #67

Open
kamakazikamikaze opened this issue Oct 27, 2016 · 1 comment
Open

Comments

@kamakazikamikaze
Copy link

kamakazikamikaze commented Oct 27, 2016

I have the following (ugly) statement

arrays = sorted(filter(
            lambda x: not any(y for y in ['NOMON', 'NEW'] if y in x) and
            any(y for y in ['-AN', '-P2P'] if y in x),
            [x['hostname'].encode().upper() for x in r.json()]))

Matching parenthesis do not highlight properly in PythonImproved, but work just fine with Python.

With the cursor at the end:
image

Cursor in the middle:
image

Cursor at the lambda:
image

PythonImproved does not treat any lines after this statement as though they were parameters to the filter or sorted methods, so it appears to be an aesthetic issue. (Code works fine.)

@kamakazikamikaze
Copy link
Author

kamakazikamikaze commented Oct 28, 2016

This does not appear to be an issue in OS X. For reference, the original issue was in Sublime Text 3 on Windows 10

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

1 participant