Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Conversation

falcondai
Copy link
Contributor

@falcondai falcondai commented Apr 24, 2018

Requirements

  • Filling out the template is required. Any pull request that does not include enough information to be reviewed in a timely manner may be closed at the maintainers' discretion.
  • All new code requires tests to ensure against regressions

Description of the Change

Matches lambda via lookahead for whitespace or :. This resolves #246 and a problem introduced in #253

Alternate Designs

Benefits

Possible Drawbacks

Applicable Issues

#253 broke parsing lambda_not.foo. This fixes it while preserving correct tokenization for #246

@@ -335,7 +335,7 @@
]
}
{
'begin': '\\b(lambda)\\s?+'
'begin': '\\b(lambda)(?=[\\s\\:])'
Copy link
Contributor

Choose a reason for hiding this comment

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

Would something as simple as a word boundary anchor (\b) work here, or do you need the lookahead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That s a very good point! Let me push a new commit

@maxbrunsfeld maxbrunsfeld merged commit 9efeb2a into atom:master Apr 24, 2018
@maxbrunsfeld
Copy link
Contributor

Thanks for following up on the lambda_not thing.

@falcondai
Copy link
Contributor Author

Sure thing! I happen to see that in my code just now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

lambda: does not highlight lambda as a keyword
2 participants