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: support pug extends #599

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

simiraaaa
Copy link
Contributor

*Machine translation from Japanese to English at DeepL.

#459
#572

I came up with a solution to the above Issue and PR.
Use pug-lexer to extract the line with the extends syntax and move it to the top line.
This will work even with comments and prependData.

I think it needs to be tested, but I have not written it because I do not know how to write it correctly.
I would appreciate it if you could add it to this PR or create it separately.

Tests

  • Run the tests with npm test or pnpm test

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.

1 participant