-
Notifications
You must be signed in to change notification settings - Fork 6
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 support for data object #71
Conversation
src/keywords.YAML-tmLanguage
Outdated
@@ -44,7 +44,7 @@ repository: | |||
match: \b(constructor|init)\b | |||
name: entity.name.function.constructor | |||
- | |||
match: \b(companion|object)\b | |||
match: \b(companion|object|data\s+object)\b |
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.
Thanks for your contribution. I'm assuming that this change is motivated by https://kotlinlang.org/docs/object-declarations.html#data-objects. I'd rather have data
tagged independently as a storage modifier than make data object
as a single keyword. I think the correct place to make the adjustment would be making the change here
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.
Ok, I'll rework :)
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.
So I did so, hopefully, it is correct now.
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.
@nishtahir please :)
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #71 +/- ##
=======================================
Coverage 68.40% 68.40%
=======================================
Files 13 13
Lines 500 500
=======================================
Hits 342 342
Misses 158 158 ☔ View full report in Codecov by Sentry. |
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.
Thanks for your contribution 🎉. This looks good. It still needs a regression test and an update to the corpus before it can be merged into master, but I can add that
* add support for data object (#71) * Add update to corpus and regression test --------- Co-authored-by: Jan Škrášek <[email protected]>
No description provided.