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

Ruby syntax highlighting - Change color of %i and %I symbol array literal elements according to symbol color #1879

Open
themilkman opened this Issue Feb 12, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@themilkman
Copy link

themilkman commented Feb 12, 2019

Hi,
maybe there is a way to get this without changing the Ruby.sublime-syntax for all (I'd be glad for any instructions) but I don't understand the .sublime-syntax format yet, nor do I know how to override the file locally (if possible).

So, what do wish?

:foo
%i[foo bar]
# => [:foo, :bar]

Here, the :foo symbol is colored purple. Elements of the %i(foo) are yellow as if they'd be strings. I'd love to have those elements to be purple to show, what they actually are.

While of course Elements of

%w[foobar]
# => ["foobar"]

shall keep yellow as they are strings.

Thanks for any idea!


This issue follows this forum thread.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment