SilverPhoenix99 / mintcs

A Ruby parser and compiler written in C#
MIT License
3 stars 0 forks source link

Hash error - label with interpolation #2

Closed SilverPhoenix99 closed 8 years ago

SilverPhoenix99 commented 8 years ago

{ "a#{1}": 3 } throws the following error:

Mint.SyntaxError: (imt):1: unexpected kCOLON
   at Mint.Parse.Parser.Parse() in Mint\Solution\Mint.Parser\Parse\Parser.cs:line 54
   at Mint.Parse.Parser.Parse(String filename, String data) in Mint\Solution\Mint.Parser\Parse\Parser.cs:line 74
   at Mint.Repl.Run() in Mint\Solution\Test\Repl.cs:line 26

It should have returned: { :a1 => 3 }

SilverPhoenix99 commented 8 years ago

Fixed in commit https://github.com/SilverPhoenix99/mintcs/commit/d04d0a5df94206a48f86244a54362b667ee1dc5d