language-ruby icon indicating copy to clipboard operation
language-ruby copied to clipboard

Hash string symbol syntax highlighted wrong.

Open envygeeks opened this issue 8 years ago • 0 comments

Given the following:

# --
HTML = {
  "text/css": :link,
  "application/javascript":  :script,
  "image/png": :img,
}

language-ruby highlights it as a string

bad-syntax

Even though it's a Symbol:

[1] pry(main)> { "text/css": :hello }
# => {
#   :"text/css" => :hello
# }

envygeeks avatar Oct 08 '17 08:10 envygeeks