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

Add support for "@use with" #1412

Merged
merged 3 commits into from
Jun 27, 2019
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
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
105 changes: 105 additions & 0 deletions spec/directives/use/error/syntax.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -418,3 +418,108 @@ Error: Private members can't be accessed from outside their modules.
| ^^^^^^^
'
input.scss 4:21 root stylesheet

<===>
================================================================================
<===> with/empty/input.scss
@use "other" with ();

<===> with/empty/error
Error: expected "$".
,
1 | @use "other" with ();
| ^
'
input.scss 1:20 root stylesheet

<===>
================================================================================
<===> with/missing_keyword/input.scss
@use "other" with (a);

<===> with/missing_keyword/error
Error: expected "$".
,
1 | @use "other" with (a);
| ^
'
input.scss 1:20 root stylesheet

<===>
================================================================================
<===> with/missing_value/input.scss
@use "other" with ($a);

<===> with/missing_value/error
Error: expected ":".
,
1 | @use "other" with ($a);
| ^
'
input.scss 1:22 root stylesheet

<===>
================================================================================
<===> with/space_after_dollar/input.scss
@use "other" with ($ a: b);

<===> with/space_after_dollar/error
Error: Expected identifier.
,
1 | @use "other" with ($ a: b);
| ^
'
input.scss 1:21 root stylesheet

<===>
================================================================================
<===> with/namespace_variable/input.scss
@use "other" with ($a.b: c);

<===> with/namespace_variable/error
Error: expected ":".
,
1 | @use "other" with ($a.b: c);
| ^
'
input.scss 1:22 root stylesheet

<===>
================================================================================
<===> with/extra_comma/input.scss
@use "other" with ($a,,);

<===> with/extra_comma/error
Error: expected ":".
,
1 | @use "other" with ($a,,);
| ^
'
input.scss 1:22 root stylesheet

<===>
================================================================================
<===> with/no_arguments/input.scss
@use "other" with;

<===> with/no_arguments/error
Error: expected "(".
,
1 | @use "other" with;
| ^
'
input.scss 1:18 root stylesheet

<===>
================================================================================
<===> with/before_as/input.scss
@use "other" with ($a: b) as c;


<===> with/before_as/error
Error: expected ";".
,
1 | @use "other" with ($a: b) as c;
| ^
'
input.scss 1:27 root stylesheet
Loading