Skip to content

Numbers as map key produces errors #534

@drewwells

Description

@drewwells

First off, thank you for adding support for sass maps!

I found some errors using more complex ones ie.

Throws an unclosed parenthesis error

$sprites: (139: (width: 96, height: 139, x: 0, y: 0, url: 'test/build/image-d65510.png'), 140: (width: 96, height: 140, x: 0, y: 139, url: 'test/build/image-d65510.png'));

In 3.0rc2, complex maps were not supported at all. I found chaining map_merges did work! However, my workaround also throws unclosed parenthesis errors in 3.0rc4.

$sprites: (); $sprites: map_merge($sprites,(139: (width: 96, height: 139, x: 0, y: 0, url: 'test/build/image-d65510.png'))); $sprites: map_merge($sprites,(140: (width: 96, height: 140, x: 0, y: 139, url: 'test/build/image-d65510.png')));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions