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

Anonymous functions as arguments #83

Merged

Conversation

watermarkhu
Copy link
Contributor

Fixes #80

Anonymous functions are currently defined to end on ; or comment. This does now allow for declaring anonymous function directly as argument to a function.

@@ -1,4 +1,4 @@
% SYNTAX TEST "source.matlab" "Imports: https://github.com/mathworks/MATLAB-Language-grammar/pull/52"
% SYNTAX TEST "source.matlab" "LineContinationInAnonymousFunctions: https://github.com/mathworks/MATLAB-Language-grammar/pull/54"
Copy link
Member

Choose a reason for hiding this comment

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

Thanks for making these corrections!

@dklilley dklilley self-assigned this Jun 19, 2024
@dklilley dklilley added the CLA signed Indicates that the requester has signed the Contributor License Agreement label Jun 19, 2024
@dklilley dklilley merged commit 87eea5f into mathworks:master Jun 19, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA signed Indicates that the requester has signed the Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"end" keyword not being tokenized correctly
2 participants