Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Hash string symbol syntax highlighted wrong. #216

Open
envygeeks opened this issue Oct 8, 2017 · 0 comments
Open

Hash string symbol syntax highlighted wrong. #216

envygeeks opened this issue Oct 8, 2017 · 0 comments
Labels

Comments

@envygeeks
Copy link
Contributor

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
# }
@winstliu winstliu added the bug label Oct 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants