Skip to content
This repository was archived by the owner on Aug 17, 2021. It is now read-only.

tolerate multiple class definitions on same line#85

Merged
dylanirlbeck merged 3 commits intodylanirlbeck:masterfrom
joprice:mutlipleOnLine
May 13, 2020
Merged

tolerate multiple class definitions on same line#85
dylanirlbeck merged 3 commits intodylanirlbeck:masterfrom
joprice:mutlipleOnLine

Conversation

@joprice
Copy link
Copy Markdown
Contributor

@joprice joprice commented May 13, 2020

When using this ppx with bucklescript-tea and ocamlformat with ocaml syntax, I hit an issue where the regex is too greedy and ends up parsing classes like "p-6\"]></div>", when multiple appear on the same line. For instance, Ocamlformat ends up formatting lines with ternaries on a single line:

if selected then [%tw "text-white"] else [%tw "text-blue-200"] );

Copy link
Copy Markdown
Owner

@dylanirlbeck dylanirlbeck left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for the PR 😄

@dylanirlbeck dylanirlbeck merged commit ce53653 into dylanirlbeck:master May 13, 2020
@joprice joprice deleted the mutlipleOnLine branch June 19, 2020 22:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants