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

& + & css selector doesn't compile correctly #771

Open
haikyuu opened this issue Nov 24, 2022 · 2 comments
Open

& + & css selector doesn't compile correctly #771

haikyuu opened this issue Nov 24, 2022 · 2 comments
Labels

Comments

@haikyuu
Copy link
Collaborator

haikyuu commented Nov 24, 2022

Description

I get a warning in the console for css & + & mt:1.2em

▲ [WARNING] Unexpected "{" [css-syntax-error]

    app/shared/types/markdoc/config.imba?styles:3:9:
      3 │ .ku-af + {margin-top: 1.2em;}
        ╵          ^

Reproduction

https://scrimba.com/scrim/cqmnDrt7

System Environment

*
@haikyuu haikyuu added the bug label Nov 24, 2022
@fuale
Copy link

fuale commented Jun 15, 2023

I was trying to investigate error in evening and i think problem in file selparse.imba in function rewrite. Tokenizer works as intended and show up "& + &" but in compiler prints .foo + { anyway. I think it's bug in parser.

@fuale
Copy link

fuale commented Jun 15, 2023

As a workaround you can write

global css t-t + t-t bg:amber4

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

No branches or pull requests

2 participants