Skip to content

Conversation

@koljonen
Copy link
Contributor

These were previously caught by (r'[^\W\d_]\w*(?=[.(])', tokens.Name), so I added a special regex just above that one.

These were previously caught by (r'[^\W\d_]\w*(?=[.(])', tokens.Name), so I added a special regex just above that one.
# IN is special, it may be followed by a parenthesis, but
# is never a functino, see issue183
(r'in\b(?=[ (])?', tokens.Keyword),
(r'USING(?=\()', is_keyword),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should probably be (r'USING(?=\()', tokens.Keyword), to skip going through the is_keyboard search.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, you're right.

@coveralls
Copy link

coveralls commented May 15, 2016

Coverage Status

Coverage increased (+0.06%) to 89.06% when pulling 233216c on koljonen:using_directly_followed_by_parenthesis into 9ab1464 on andialbrecht:master.

@andialbrecht andialbrecht merged commit 16356db into andialbrecht:master May 28, 2016
@andialbrecht
Copy link
Owner

Thanks!

@andialbrecht andialbrecht added this to the 0.2.0 milestone May 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants