-
Notifications
You must be signed in to change notification settings - Fork 58
Add lambda expression and fix call expression #34
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
Conversation
4ada164
to
7eec138
Compare
anyway, other than the things I mentioned, LGTM! |
@maxbrunsfeld can you take a look at this PR? and also #35? |
0c5b095
to
1564db8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Thanks for adding good tests. I just left a couple of minor questions.
grammar.js
Outdated
bindings: $ => seq( | ||
'(', | ||
commaSep($.binding), | ||
')', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor nitpick - Could you make the indentation for the new lines consistent with the rest of the file?
grammar.js
Outdated
), | ||
|
||
_case_clauses: $ => seq('{', repeat1($.case_clause), '}'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just curious - what was the purpose of extracting this rule?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm good catch, it's not needed. I remember adding it because it's used in the call_expression
, to dissalow f{}
, but that's a valid expression.
Fix call expression to allow block as arguments (tree-sitter#21) Update for comprehension to handle patterns Fix for comprehension to detect assignment as an enumerator Add access modifiers Update trait, object and class parameter to support modifiers Update scanner to support `with` on a new line Update function definition/declaration to support operator naming Update field expression to support operators as methods
@maxbrunsfeld I pushed the changes you requested, can we merge this ? |
Fix call expression to allow block as arguments (#21)
Update for comprehension to handle patterns
Fix for comprehension to detect assignment as an enumerator
Add access modifiers
Update trait definition to support modifiers
Update function definition/declaration to support operator naming
Update field expression to support operators as methods