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

Support new sass @use syntax #1976

Closed
xuld opened this issue Dec 18, 2021 · 1 comment · Fixed by #2039
Closed

Support new sass @use syntax #1976

xuld opened this issue Dec 18, 2021 · 1 comment · Fixed by #2039

Comments

@xuld
Copy link

xuld commented Dec 18, 2021

Description

The latest sass intruduces a new @use and @forwards syntax.

Input

The code looked like this before beautification:

@use "a" as *;
@forwards "a" with(
   $a: 2
);

Expected Output

The code should have looked like this after beautification:

@use "a" as *;
@forwards "a" with (
   $a: 2
);

Actual Output

The code actually looked like this after beautification:

@use "a"as *;
@forwards "a"with($a: 2);

Settings

{
    "indent_size": 4,
    "indent_char": " ",
    "indent_level": 0,
    "indent_with_tabs": false,
    "preserve_newlines": true,
    "max_preserve_newlines": 10,
    "jslint_happy": false,
    "space_after_anon_function": false,
    "brace_style": "collapse,preserve-inline",
    "keep_array_indentation": false,
    "keep_function_indentation": false,
    "space_before_conditional": true,
    "break_chained_methods": false,
    "eval_code": false,
    "unescape_strings": false,
    "wrap_line_length": 0
}
@bitwiseman
Copy link
Member

PRs welcome.

mhnaeem added a commit to mhnaeem/js-beautify that referenced this issue Apr 11, 2022
bitwiseman added a commit that referenced this issue Apr 12, 2022
…-sass

Fixes #1976 Adding support for the new @forwards syntax in SASS
@bitwiseman bitwiseman added this to the 1.14.x milestone Apr 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants