-
Notifications
You must be signed in to change notification settings - Fork 591
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
[Scala] Class names in annotation "paths" #735
Comments
Scala classes can have upper- or lower-case names, though it is more strongly conventional to upper-case than in other languages (due to the way it interacts with certain type system features. Conversely, "bare" (non-class) types or package names can also have upper-case names. Also, the I'm not sure I understand why @scala.annotation.BeanProperty Why would @BeanProperty And why would that be scoped differently from this: @scala.annotation.tailrec @tailrec The definition of these two annotations is almost identical (they're both classes), but you seem to be proposing scoping them differently? |
I am working off of the scoping we use for function calls, that is, the final identifier in a path is the only one that gets |
Mostly, I just figured all but the final identifier in an annotation would get the same scope they would when not in an annotation. |
That's fair, though I think syntactically it might look a little weird because the If it's unchanged, it will end up with this rather odd situation where FWIW, nearly all editors which have any scoping at all for Java/Scala annotations tend to scope the entire token string, including quantifiers. |
Right now Personally I'm not a huge fan of the single-color annotations. Things like that tend to look broken to me since they cause every bit of the syntax to run together, including class names, accessors, symbols, etc. I've opened #737 to discuss the general topic. |
Closing this in favor of #737 |
Related to #605
Can annotation identifier "paths" contain class names (with a capital first letter)? If so, we should update
Packages/Scala/Scala.sublime-syntax
Lines 156 to 163 in eaf8321
support.class
.@djspiewak @gwenzek
The text was updated successfully, but these errors were encountered: