atom / language-ruby

Ruby package for Atom
Other
100 stars 144 forks source link

Hash string symbol syntax highlighted wrong. #216

Open envygeeks opened 6 years ago

envygeeks commented 6 years ago

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
# }