You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 16, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 16, 2026. It is now read-only.
Ruby append operator gets interpreted as the start of a string literal #5871
When using the << operator (i.e. method in Ruby) it gets highlighted as the start of a string literal when there's no space immediately after <<.
Examples:
array<<5 shows correctly
array<< variable shows correctly
array<<variable shows incorrect highlighting
Screenshot
Testing code
variable=9array=[]array<<5array<<[1,2]array<< variablearray<<variableif variable==7 # comment puts "hello"else variable+=7endvariable+=5 # end of string literal?!array<<8
Activity
[ruby mode] Require dash or tilde at start of heredoc strings
Update from master (#1)
[ruby mode] Require dash or tilde at start of heredoc strings