Skip to content

fix: support pug extends #599

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

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

Successfully merging this pull request may close these issues.

1 participant