10000 Ruby 1.9 Hash syntax is still not parsed correctly · Issue #171 · rubychan/coderay · GitHub
[go: up one dir, main page]

Skip to content
Ruby 1.9 Hash syntax is still not parsed correctly #171
Closed
@janko

Description

@janko
Hash[*CodeRay.scan("{:foo => 'bar', foo: 'bar'}", :ruby).tokens]
 {"{"=>:operator,
 ":foo"=>:symbol,
 " "=>:space,
 "="=>:operator,
 ">"=>:operator,
 :begin_group=>:string,
 "'"=>:delimiter,
 "bar"=>:content,
 :end_group=>:string,
 ","=>:operator,
 "foo"=>:key,        # this should be parsed as `:symbol`
 ":"=>:operator,     # and this too
 "}"=>:operator}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0