Yoann Padioleau
Yoann Padioleau
original conversation here: https://returntocorp.slack.com/archives/C01NXGX2EHZ/p1641412524045000
what if semgrep had a -pp option (for preprocessor) where you pass a semgrep rule that does the pre-processing/extraction and internally we do the magic to remember the original line,...
Semgrep is great at finding code, let's use it to do the extraction!
Here is another example of template language to support: https://haml.info/
There's also .erb, .ejs.
Another example are the smarty template files used with PHP
Reopening, because even though the infra is there (extract mode), we still to write the extract rules for all the embedded languages we want to support, write some tests, etc....
👋 also asked here: https://r2c-community.slack.com/archives/C018NJRRCJ0/p1638779987197500
ahah, j'adore la cite de la peur!