Skip to content

Add color for Ruby symbols#16

Open
denblackstache wants to merge 2 commits into
nabato:mainfrom
denblackstache:fix-ruby-symbol-color
Open

Add color for Ruby symbols#16
denblackstache wants to merge 2 commits into
nabato:mainfrom
denblackstache:fix-ruby-symbol-color

Conversation

@denblackstache
Copy link
Copy Markdown
Contributor

@denblackstache denblackstache commented Apr 28, 2025

After comparing with the Alabaster theme in Sublime Text, I realized that I had missed highlighting the symbols.

  • Use a "constant" color for symbols. Hash keys as symbols are not colored to reduce noise, similar to how object keys are handled in JavaScript.
  • Derive the Ruby regexp color from the base string, similar to the JS regexp.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant