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

Fix handling comments #445

Merged
merged 3 commits into from Mar 13, 2024
Merged

Conversation

zakybilfagih
Copy link
Contributor

@zakybilfagih zakybilfagih commented Mar 13, 2024

Adding comment regex to correctly handle comments #441

/* nice */
    /* nice */


    /* nice */
    /* nice */

    div {
      color: red;
    }

Before: WS WS WS WS WS TAG('div') WS LEFT_BRACE RIGHT_BRACE
After: WS TAG('div') WS LEFT_BRACE RIGHT_BRACE

div /*nice*/ /* nice */   /*ice*/.b {}

Before: WS TAG('div') WS WS WS DOT TAG('b') WS LEFT_BRACE RIGHT_BRACE
After WS TAG('div') WS DOT TAG('b') WS LEFT_BRACE RIGHT_BRACE

Copy link

vercel bot commented Mar 13, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
styled-ppx ⬜️ Ignored (Inspect) Visit Preview Mar 13, 2024 7:24pm

Copy link
Owner

@davesnx davesnx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice fix, Thanks for doing it!

@davesnx davesnx merged commit 847b671 into davesnx:main Mar 13, 2024
7 checks passed
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

Successfully merging this pull request may close these issues.

None yet

2 participants