in reply to Embedding pod in other languages
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Embedding pod in other languages
by jpl (Monk) on May 19, 2011 at 17:25 UTC | |
by John M. Dlugosz (Monsignor) on May 19, 2011 at 19:17 UTC | |
by jpl (Monk) on May 19, 2011 at 20:51 UTC | |
by John M. Dlugosz (Monsignor) on May 19, 2011 at 21:48 UTC | |
by jpl (Monk) on May 19, 2011 at 22:29 UTC | |
|