diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-06-04 17:52:26 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-06-04 17:52:26 +1200 |
commit | 2ea2afc068dc7330c9696af54ff2dced157f47de (patch) | |
tree | cce72f2ca4ad903e9e0ecd6bd26cac4bf987578b /share | |
parent | Add missing paren (diff) | |
download | dotfiles-2ea2afc068dc7330c9696af54ff2dced157f47de.tar.gz dotfiles-2ea2afc068dc7330c9696af54ff2dced157f47de.zip |
Significant improvements to mi5(1df)
A clunkier and probably-slower but more accurate parser--won't stumble
over quoted instances of the mi5(1df) delimiter within inline macro
expansions. This removes one of the CAVEATS described in the manual
page.
Also allow specifying the quote and unquote strings and also the dnl
string in m4, mostly for completeness' sake; the manual page warns
against this as I think it's probably missing the point of mi5(1df) if
you're getting to that point.
Diffstat (limited to 'share')
-rw-r--r-- | share/sample1.mi5 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/share/sample1.mi5 b/share/sample1.mi5 index 686d7787..1e134d8e 100644 --- a/share/sample1.mi5 +++ b/share/sample1.mi5 @@ -4,4 +4,6 @@ %> FOO is <% FOO %>. Happy? Here it is again: <% FOO %>. +If I quote it, though, it doesn't evaluate: <% `FOO' %>. I hope this has been enlightening for you. +I can safely comment the opening tags within an inline block, too, look: <% `<%' `%>' %>. Cool, huh? |