sublimehq / Packages

Syntax highlighting files shipped with Sublime Text and Sublime Merge
https://sublimetext.com
Other
2.95k stars 588 forks source link

[Ruby] Invalid symbol highlighting #1310

Open ilnurnasyrov2 opened 6 years ago

ilnurnasyrov2 commented 6 years ago
{ 'x': 1 }

'x': should be highlighted as symbol, but now it looks like string in ST.

image

FichteFoll commented 6 years ago

Can you describe how it looked previously?

ilnurnasyrov2 commented 6 years ago

It always have been the same if I remember correctly. Moreover github, visual studio and atom highlight it as string. But I believe, it should be highlighted as symbol, because

{ 'x': 1 }.keys #=> [:x]
Thom1729 commented 6 years ago

I think you could make a case that while the 'x' semantically represents a symbol, it is syntactically a string.

ilnurnasyrov2 commented 6 years ago

image

Thom1729 commented 6 years ago

You make a compelling argument.