-
Notifications
You must be signed in to change notification settings - Fork 455
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
Improved grammar for kotlin based on official documentation #3407
Improved grammar for kotlin based on official documentation #3407
Conversation
Signed-off-by: Per-Steinar Karlsen <per-steinar.karlsen@skatteetaten.no>
As long as we've made an attempt to upstream the work, at eclipse-buildship/buildship#1273, I'm fine with getting it in here sooner. @jdneo , feel free to merge if it all looks good to you. |
Hi @per-steinar, thank you for your contribution! Looks like lots of cases will be improved with this PR. If possible, would you mind give the improved sample snippets as comment here? |
@jdneo Most of the changes are only vissible when inspecting the textmate scopes, but i have added the most vissible ones: |
Signed-off-by: Per-Steinar Karlsen <per-steinar.karlsen@skatteetaten.no>
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.
Thank you @per-steinar! |
@@ -21,10 +21,13 @@ | |||
], | |||
"repository": { | |||
"import": { | |||
"begin": "\\b(import)\\b\\s*", | |||
"begin": "\\b(import)\\b\\s?([\\w+.]*\\w+)?\\s*", |
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.
This rule unfortunately isn't quite correct and matches the package name as a modifier token, see: fwcd/vscode-kotlin#137 (comment).
PR improves kotlin grammar based on documentation from https://kotlinlang.org/docs/home.html
Resolves #3403