jsoverson / preprocess

Preprocess HTML, JavaScript, and other files with directives based off custom or ENV configuration
Other
366 stars 80 forks source link

Added support for pug regex #134

Open gittycat opened 6 years ago

gittycat commented 6 years ago

Added support for Pug (Jade)

pioug commented 4 years ago

Thanks @gittycat for your contribution 🙏 Before merging your PR, I need some clarification because I am also not familiar with Pug 💦

The regexes seems to support this syntax /* @echo FOO */ but that doesn't seem to be a valid comment in Pug. Because the current regex rules seems to respect the syntax of each language, I would prefer to support only //- if that makes sense.

gittycat commented 4 years ago

@pioug Yes, //- seem to be the correct syntax. This PR is pretty old and I've moved on to other things since then. You're welcome to make any other changes with it. Cheers.