包详细信息

@lezer/sass

lezer-parser1.1mMIT1.1.0

Lezer-based Sass/SCSS grammar

自述文件

@lezer/sass

This is a Sass/SCSS grammar for the lezer parser system.

Parses SCSS syntax by default. Enable the "indented" dialect to support indented syntax.

The code is licensed under an MIT license.

更新日志

1.1.0 (2025-05-16)

Bug fixes

Fix parsing of selectors in descendant positions.

Allow @ keywords to start with a dash, since prefixed ones exist.

Emit a node for class selector dots.

Allow values to be empty.

Follow the standard, allowing digits in unit identifiers.

Correctly parse properties with a space before the colon.

Add support for bracketed grid line names.

Make keyframe selector parsing more flexible to support timeline ranges.

Allow multiple comma-separated keyframe selectors per keyframe.

New features

Add support for range queries.

@import statements now support syntax.

1.0.7 (2024-09-20)

Bug fixes

Fix a bug that could cause the parser to get stuck, endlessly parsing empty statments, at the end of some types of inputs with unclosed blocks.

1.0.6 (2024-03-21)

Bug fixes

Properly parse placeholder selectors. Add map declarations to the grammar

Add support for parenthesized maps.

1.0.5 (2024-03-09)

Bug fixes

Add support for as syntax in @forward and @use.

1.0.4 (2023-12-28)

Bug fixes

Tag comments and strings as isolating for the purpose of bidirectional text.

1.0.3 (2023-07-07)

Bug fixes

Properly parse suffixed nested selectors.

Allow the nesting & selector to appear as a descendant selector.

1.0.2 (2023-07-03)

Bug fixes

Make the package work with new TS resolution styles.

1.0.1 (2023-04-20)

Bug fixes

Include type definitions.

1.0.0 (2023-04-20)

Breaking changes

First numbered release.