Add record and var keywords to Groovy syntax#3872
Merged
joshgoebel merged 4 commits intohighlightjs:mainfrom Oct 8, 2023
Merged
Add record and var keywords to Groovy syntax#3872joshgoebel merged 4 commits intohighlightjs:mainfrom
joshgoebel merged 4 commits intohighlightjs:mainfrom
Conversation
Build Size ReportChanges to minified artifacts in 5 files changedTotal change +10 B View Changes
|
Member
|
Looks good, but please update CHANGES.md as well. |
Build Size ReportChanges to minified artifacts in 2 files changedTotal change +13 B View Changes
|
Contributor
Author
|
Sorry joshgoebel for missing the |
Build Size ReportChanges to minified artifacts in 5 files changedTotal change +16 B View Changes
|
joshgoebel
reviewed
Oct 8, 2023
CHANGES.md
Outdated
| - 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][] |
Member
There was a problem hiding this comment.
You need to also add a subscript link on lines ~ 102-120.
Contributor
Author
|
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
|
joshgoebel
approved these changes
Oct 8, 2023
Build Size ReportChanges to minified artifacts in 5 files changedTotal change +7 B View Changes
|
Member
|
Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Groovy added support for
records like Java, and also allows the use ofvar(in addition todef) to define variables or specified non-typed arguments.