Skip to content

Commit

Permalink
Indented Syntax Improvements: Draft 1.2 (#4010)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesnw authored Jan 4, 2025
1 parent 40c50cb commit c4c0301
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
5 changes: 5 additions & 0 deletions proposal/indented-syntax-improvements.changes.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## Draft 1.2

* Forbid newlines following the identifier in Unknown At-Rules
* Forbid newlines in declarations before a colon

## Draft 1.1

* Remove SCSS-in-Sass syntax
Expand Down
23 changes: 22 additions & 1 deletion proposal/indented-syntax-improvements.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Indented Syntax Improvements: Draft 1.1
# Indented Syntax Improvements: Draft 1.2

*([Issue](https://github.com/sass/sass/issues/216), [Changelog](./indented-syntax-improvements.changes.md))*

Expand All @@ -20,6 +20,8 @@ expressions and semicolons.
* [IndentedStatements](#indentedstatements)
* [WhitespaceComment](#whitespacecomment)
* [Whitespace](#whitespace)
* [Unknown At-Rules](#unknown-at-rules)
* [Declarations](#declarations)

## Background

Expand Down Expand Up @@ -200,3 +202,22 @@ Replace footnote 1 with:
[`Whitespace`]: ../spec/statement.md#whitespace
[`IndentSame`]: ../spec/statement.md#indentation
[`IndentMore`]: ../spec/statement.md#indentation

### Unknown At-Rules

Replace the first sentence of prose in [Unknown At-Rules Syntax] with:

[Unknown At-Rules Syntax]: ../spec/at-rules/unknown.md#syntax

No whitespace is allowed after `@`, and in the indented syntax, [`LineBreak`] is
not whitespace following `InterpolatedIdentifier`.

### Declarations

Replace footnote 1 of [Declarations Syntax] with:

[Declarations Syntax]: ../spec/declarations.md#syntax

1. This may not begin with "--". In the indented syntax, [`LineBreak`] is not
whitespace, even in contexts where selectors are not allowed, to avoid
different behavior across contexts.

0 comments on commit c4c0301

Please sign in to comment.