Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

Incorrect inspect() behavior for some nested lists #2654

@front-endian

Description

@front-endian

When calling inspect() on a set of nested lists wrapped in square brackets you sometimes get unexpected results. The following is one of the simplest versions of this bug that I have found.

list_bug.scss

$example: [() (())];

@debug $example;
@debug inspect($example);

Actual results

libsass 3.5.4

/path/to/list_bug.scss:3 DEBUG: [() ()]
/path/to/list_bug.scss:4 DEBUG: [(() ())]

Expected result

Dart Sass 1.2.1
Ruby Sass 3.5.2

/path/to/list_bug.scss:3 DEBUG: [() ()]
/path/to/list_bug.scss:4 DEBUG: [() ()]

version info:

$ sassc -v
sassc: 3.4.8
libsass: 3.5.4
sass2scss: 1.1.1
sass: 3.5

http://libsass.ocbnet.ch/srcmap/#JGV4YW1wbGU6IFsoKSAoKCkpXTsKCkBkZWJ1ZyAkZXhhbXBsZTsKQGRlYnVnIGluc3BlY3QoJGV4YW1wbGUpOwo=

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions