-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Add record and var keywords to Groovy syntax #3872
Conversation
Build Size ReportChanges to minified artifacts in 5 files changedTotal change +10 B View Changes
|
Looks good, but please update CHANGES.md as well. |
Build Size ReportChanges to minified artifacts in 2 files changedTotal change +13 B View Changes
|
Sorry joshgoebel for missing the |
Build Size ReportChanges to minified artifacts in 5 files changedTotal change +16 B View Changes
|
CHANGES.md
Outdated
@@ -97,6 +97,7 @@ Core Grammars: | |||
- enh(php) detect newer more flexible NOWdoc syntax (#3679) [Timur Kamaev][] | |||
- enh(python) improve autodetection of code with type hinting any function's return type (making the `->` operator legal) [Keyacom][] | |||
- enh(bash) add `select` and `until` as keywords | |||
- enh(groovy) add `record` and `var` as keywords [Guillaume Laforge][] |
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.
You need to also add a subscript link on lines ~ 102-120.
I moved in the unreleased version as well, I realised I put it in the already released version |
Build Size ReportChanges to minified artifacts in 5 files changedTotal change +10 B View Changes
|
Build Size ReportChanges to minified artifacts in 5 files changedTotal change +7 B View Changes
|
Thanks! |
Groovy added support for
record
s like Java, and also allows the use ofvar
(in addition todef
) to define variables or specified non-typed arguments.