Skip to content

rake gettext:find not able to parse new Ruby 1.9 Hash syntax #2

@mfernandezrodriguez

Description

@mfernandezrodriguez

Hi!

we're playing with gettext and the new Ruby 1.9 Hash syntax and the rake gettext:find task won't parse our views correctly. The error:

parse error on value ":" (tCOLON)

The syntax we're referring to:

# Ruby 1.8 Syntax
{:this => 'syntax', 'is' => 'fun', #<And:0x10036bb58> => 'flexible'}
# Ruby 1.9 syntax
{this: 'syntax', 'will': 'cause', #<Nasty:0x10031bf85>: 'errors'}

Are we doing something wrong? If not, any plans to support this? Shall we find another gettext string searching tool after all :)?

Regards!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions