Inconsistency for Ruby 1.9 symbolSee original GitHub issue
Thank you for solving the ruby color for symbol. It would be great if you can do one more change for an alternative symbol syntax for Ruby 1.9+
:one => 1 # normal form one: 1 # ruby 1.9+
So it is still inconsistent. And even the function args look different as well:) Atom:
One Dark Pro:
_Originally posted by @foreverqihe in https://github.com/Binaryify/OneDark-Pro/issues/258#issuecomment-427642264_
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
Alright I get it now. Thanks for the help.
When installing the Ruby extension on VSCode, it creates additional scopes that native VSCode does not have. Of these scopes which are relevant to your issue, are:
constant. Since One Dark Pro only really supports the languages’ prebuilt scopes (and Ruby never provided them in the first place), the default highlighting for these scopes will just come into effect. As such the default
variable is that red colour and the default
constant is that yellowish-orange.
Now I haven’t investigated Atom completely, but it seems the Ruby language doesn’t define those
constant scopes like VSCode, hence it uses that highlighting shown in your first screenshot. You might then suggest to incorporate this change but that’d be up to @Binaryify as it is extension-related rather than prebuilt. You could always fork and open a pull request, or I could… Either is fine, but he has the final say :>
Hope this helps!
You could also just define them in your settings.json too…
Thank you for the investigation. Would you mind letting me know how to do it in the settings.json, if it doesn’t take too much time for you?