X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/3284633f22512d39475fa4e69d62b2c456c4967e..875f4ec7a8b017c48c4b42a6c8a88588558d535e:/doc/todo/nested_preprocessor_directives.mdwn diff --git a/doc/todo/nested_preprocessor_directives.mdwn b/doc/todo/nested_preprocessor_directives.mdwn index 3094e0899..433fc6f37 100644 --- a/doc/todo/nested_preprocessor_directives.mdwn +++ b/doc/todo/nested_preprocessor_directives.mdwn @@ -20,13 +20,16 @@ nesting, a new syntax would be needed. Maybe something xml-like? >> Yes it's definitely possible to do something like that. I'm not 100% >> sure if it can be done in perl regexp or needs a real recursive descent >> parser though. +>> +>> [[!template id=gitbranch branch=timonator/heredoc_triplequote author="\[[timonator]]"]] >> >> In the meantime, this is an interesting approach: ->> +>> +>> (the link has since been fixed twice) >> ->> \[[!directive text=\<\> ... ->> FOO]] +>> \[[!directive text=<> ... +>> FOO]] >> >> Since that's implemented, I will probably just merge it, >> once I satisfy myself it doesn't blow up in any edge cases. @@ -46,3 +49,21 @@ nesting, a new syntax would be needed. Maybe something xml-like? >> >> Also, the patch seems incomplete, only patching the first regexp >> but not the other two in the same function, which also are quoting-aware. --[[Joey]] +>> +>> Yes, I'm terribly sorry. I actually did edit the other two regexps, but +>> I apparently missed copying it over as well. Should have been doing this +>> in a git repo all along. Look at the new commit I put atop it that has +>> the rest as well: +>> (redacted: is now part of the commit linked to from above) +>> Also: I'm not sure any more, why I added the m modifier. It was very +>> late at night and I was getting a bit desperate (turned out, the next +>> morning, I put my extra regexes after the "unquoted value" one. heh.) +>> So, feel free to fix that. --Timo +>> +>> I've fixed the patch by rebasing, fixed the link above. I'm still not +>> sure if the m modifier for the regex is still needed (apparently I +>> didn't put it in the other regexes. Not completely sure about the +>> implications.) Am now trying to wrap my head around a test case to +>> test the new formats for a bit. --Timo + +[[done]]!!! --[[Joey]]