Verbatim lines need some sort of special identification (currently =v followed by whitespace) to allow processed lines to begin in some column other than 0.I don't like that. It will be a bear to use, unless your editor handles that for you.
That will find a #ifdef pod anywhere on the line, even with other stuff on it. In C, the # has to be the first non-whitespace character on a line, and it won't tolerate stuff after the expression other than whitespace and comments. In fact /^.*/ seems kind of silly, since the two cancel out. If it's not anchored to the front, you don't need to skip stuff! I think you wanted /^\s*# .../.'^.*#\s*ifdef\s+pod\b'
I like the idea of embedding extraction details for known languages, to encourage standardization, but still allow it to be customized.
In reply to Re: Embedding pod in other languages
by John M. Dlugosz
in thread Embedding pod in other languages
by jpl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |