Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Indented syntax improvements] Specs #2041

Open
wants to merge 71 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
48292d0
Port and update sass semicolon tests
jamesnw Nov 5, 2024
7086054
Merge branch 'main' of https://github.com/sass/sass-spec into indente…
jamesnw Nov 25, 2024
402e0cf
Update each tests
jamesnw Nov 27, 2024
1d21902
Test debug, error, warn for multiline
jamesnw Nov 27, 2024
a45a403
Add @for whitespace tests, fix @debug, @error, @warn tests
jamesnw Dec 2, 2024
c7cf104
Extend newlines
jamesnw Dec 2, 2024
51d667a
@import whitespace tests
jamesnw Dec 2, 2024
df219eb
@mixin and @include tests
jamesnw Dec 2, 2024
16da7fb
Test whitespace in media, moz-document, supports
jamesnw Dec 2, 2024
1da98ad
Test whitespace in use and forward
jamesnw Dec 2, 2024
36ea028
Test @function and @return whitespace
jamesnw Dec 2, 2024
e133cf3
Test whitespace in @if
jamesnw Dec 3, 2024
a9f4118
Add @for and @while whitespace tests
jamesnw Dec 3, 2024
66e3afa
Add unknown at rule whitespace tests
jamesnw Dec 3, 2024
4120ffd
Test @at-root whitespace
jamesnw Dec 3, 2024
b0ecac9
Test whitespace in args and @charset
jamesnw Dec 4, 2024
7663057
Test variables whitespace
jamesnw Dec 4, 2024
e25db4b
Test leading whitespace in at-rules in functions and declarations
jamesnw Dec 4, 2024
5877d96
Test whitespace in @forward show/hide
jamesnw Dec 4, 2024
33f0689
Test whitespace in lists
jamesnw Dec 5, 2024
c480999
Test whitespace in important and unary
jamesnw Dec 5, 2024
8be7846
Whitespace in interpolation, unblock expressionUntilComma issues
jamesnw Dec 5, 2024
96827c0
Test whitespace in supports
jamesnw Dec 6, 2024
a94809a
Test whitespace in @media
jamesnw Dec 6, 2024
43ef501
Test whitespace in arg invocations
jamesnw Dec 6, 2024
8864665
Invocation and other whitespace cleanup
jamesnw Dec 6, 2024
2175ad2
Test whitespace comments
jamesnw Dec 12, 2024
024a8b3
Add attribute selector whitespace tests
jamesnw Dec 13, 2024
bdb2de5
Test whitespace in url contents
jamesnw Dec 13, 2024
ab142f6
Test newlines around operators
jamesnw Dec 13, 2024
1da6554
Test/document whitespace in support statements
jamesnw Dec 13, 2024
b137c6a
Merge branch 'main' of https://github.com/sass/sass-spec into indente…
jamesnw Dec 13, 2024
9ce6103
Test newlines in supports statements
jamesnw Dec 16, 2024
3ceb3be
Test whitespace after + import errors
jamesnw Dec 16, 2024
2195c6b
Test newlines in attributes and pseudoclass functions
jamesnw Dec 16, 2024
592c784
Cleanup
jamesnw Dec 16, 2024
c3835f0
Test indentation level in multiline
jamesnw Dec 16, 2024
e985ff6
Remove dangling files
jamesnw Dec 16, 2024
978f587
Lint
jamesnw Dec 16, 2024
cf055c5
Semicolon in sass tests
jamesnw Dec 17, 2024
84b8332
Allow whitespace after debug, error, warn
jamesnw Dec 30, 2024
abd7975
Revise whitespace in if, function and supports conditions
jamesnw Dec 30, 2024
cb3d63a
Don't break inside brackets in declarations
jamesnw Dec 30, 2024
b173fdf
Add list syntax to for difference between wasInParentheses and wasInE…
jamesnw Dec 30, 2024
e83eb36
Whitespace in destructuring each
jamesnw Dec 30, 2024
bdffd2d
Disallow newlines in whitespace after charset
jamesnw Dec 31, 2024
914f68b
Errors on unmatched brackets
jamesnw Dec 31, 2024
1222be8
Lint
jamesnw Dec 31, 2024
2084066
Allow whitespace after comma in memberlist
jamesnw Dec 31, 2024
2bdb18e
Semicolon improvements
jamesnw Jan 2, 2025
bdcca1e
Lint
jamesnw Jan 2, 2025
dd10b89
Comments after semicolons
jamesnw Jan 3, 2025
aee4a3b
Merge branch 'main' of https://github.com/sass/sass-spec into indente…
jamesnw Jan 6, 2025
f0fdcd5
Update deprecation messages
jamesnw Jan 6, 2025
ba82639
Merge branch 'main' of https://github.com/sass/sass-spec into indente…
jamesnw Jan 27, 2025
dc6d461
Fix directory names
jamesnw Jan 27, 2025
213fab9
Move errors
jamesnw Jan 27, 2025
5d97bbe
Fix CR code
jamesnw Jan 27, 2025
a00c117
Specify testing newline whitespace
jamesnw Jan 27, 2025
4609c7f
Split out placeholder names
jamesnw Jan 27, 2025
8e2dd36
Distribute semicolon tests
jamesnw Jan 27, 2025
b5361ac
Test combinators
jamesnw Jan 27, 2025
c6da2da
Test interpolation only in expressions
jamesnw Jan 27, 2025
069d9c6
Add extend a\nb test
jamesnw Jan 27, 2025
ccde328
Move forward member newlines test
jamesnw Jan 27, 2025
39b6cbd
Clean up duplicate tests
jamesnw Jan 27, 2025
d78d11f
Fix spec format
jamesnw Jan 28, 2025
b5065e4
Clean up operator tests
jamesnw Jan 28, 2025
00f65b5
Remove duplicate argument whitespace tests
jamesnw Jan 28, 2025
2719995
Test whitespace in functions and parentheses
jamesnw Jan 28, 2025
46919c3
Fix another cr newline
jamesnw Jan 28, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 14 additions & 40 deletions spec/callable/arguments.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,20 @@ a {
b: (positional: ((1,)), named: (c: 2));
}

<===>
================================================================================
<===> function/arguments/sass/input.sass
@function a($b, $c)
@return d

e
f: a(g, h)

<===> function/arguments/sass/output.css
e {
f: d;
}

<===>
================================================================================
<===> function/error/comma_only/input.scss
Expand Down Expand Up @@ -291,43 +305,3 @@ Error: Positional arguments must come before keyword arguments.
| ^
'
input.scss 3:14 root stylesheet

<===>
================================================================================
<===> function/error/sass/multi-line-arguments/declaration/input.sass
@function a(
$b,
$c
)
@return d

e
f: a(g, h)

<===> function/error/sass/multi-line-arguments/declaration/error
Error: expected ")".
,
1 | @function a(
| ^
'
input.sass 1:13 root stylesheet

<===>
================================================================================
<===> function/error/sass/multi-line-arguments/invocation/input.sass
@function a($b, $c)
@return d

e
f: a(
g,
h
)

<===> function/error/sass/multi-line-arguments/invocation/error
Error: expected ")".
,
5 | f: a(
| ^
'
input.sass 5:8 root stylesheet
Loading