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

CssSyntaxError when a single quote is present in a comment inside a value #172

Open
kizu opened this issue Oct 6, 2022 · 0 comments
Open

Comments

@kizu
Copy link

kizu commented Oct 6, 2022

A bug similar to #145 (partially fixed in #154), but seems to still reproduce in slightly different conditions.

  • Node Version: v16.3.0
  • NPM Version: 7.15.1
  • postcss Version: 8.4.16
  • postcss-less Version: 6.0.0

LESS

A single-line comment inside a value:

.foo {
  top:
    calc(
      // don't
      10px
    );
}

OR a case when there is also another comment with a quote, resulting in a different error message:

.foo {
  top:
    calc(
      // don't
      10px
    );
}
// don't

Errors

For the first case:

4:13
error
Unclosed string
(CssSyntaxError)

For the second case:

3:9-10
error
Unclosed bracket
(CssSyntaxError)

Expected Behavior

Quote inside a single-line comment should not matter.

Actual Behavior

There is an error.

How can we reproduce the behavior?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant