Skip to content

Errors when generating sourcemaps #110

@BaliBalo

Description

@BaliBalo

Some Invalid mapping errors appear when using values with parentheses (e.g. calc(thing))

This seems to be due to 28c39db, where the parser uses last[3] to get the end position here, but the tokenizer only outputs 3 values in the case of a parenthesis here and here. This causes undefined to be sent to input.fromOffset, returning a NaN column value.

This should be fixable by using offset + 1 as the fourth value, like for the other single-character tokens above. Created PR #111

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