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

Backslash in style block causes parsing errors #167

Closed
vwong opened this issue Oct 27, 2023 · 1 comment
Closed

Backslash in style block causes parsing errors #167

vwong opened this issue Oct 27, 2023 · 1 comment

Comments

@vwong
Copy link

vwong commented Oct 27, 2023

Version: 5.5.0

├─┬ @marko/run@0.2.12
│ └─┬ @marko/compiler@5.33.3
│   └── htmljs-parser@5.5.0
└─┬ @marko/type-check@1.0.2
  └─┬ @marko/language-tools@2.1.6
    └── htmljs-parser@5.5.0 deduped

Details

I'm trying to write single-file-components with view, behaviour and style in one file.

Expected Behavior

I should be able to put arbitrary valid CSS in the style block.

Actual Behavior

Most CSS is fine, but seemingly backslash seems to cause problems.

Steps to Reproduce

Insert the following into a Marko file.

style.scss {
  .foo {
    grid: "left right" / 3fr 7fr;
  }
}

Compiler fails with EOL reached while parsing regular expression

@DylanPiercey
Copy link
Contributor

closed by #168

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

2 participants