diff options
author | Stuart Rackham <srackham@methods.co.nz> | 2008-11-25 18:23:40 +1300 |
---|---|---|
committer | Stuart Rackham <srackham@methods.co.nz> | 2008-11-25 18:23:40 +1300 |
commit | 73cc3e2c0abc5dccc4cbd59aa13d72b1e3f5ab48 (patch) | |
tree | eb093b4104b8d4e8b37624f46ec4d33bb8141455 /asciidoc.conf | |
parent | db74724341e7b6f1aa9d2bb487601a5bd0301deb (diff) | |
download | asciidoc-py3-73cc3e2c0abc5dccc4cbd59aa13d72b1e3f5ab48.tar.gz |
Added 'comment' macros and delimited block.
Diffstat (limited to 'asciidoc.conf')
-rw-r--r-- | asciidoc.conf | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/asciidoc.conf b/asciidoc.conf index 0b08f5a..38cc582 100644 --- a/asciidoc.conf +++ b/asciidoc.conf @@ -214,7 +214,7 @@ endif::asciidoc7compatible[] # Passthrough macros.
(?su)[\\]?(?P<name>pass):(?P<subslist>\S*?)\[(?P<passtext>.*?)(?<!\\)\]=[]
-(?su)[\\]?(?P<name>cdata):(?P<subslist>\S*?)\[(?P<passtext>.*?)(?<!\\)\]=[attributes]
+(?su)[\\]?(?P<name>cdata|comment):(?P<subslist>\S*?)\[(?P<passtext>.*?)(?<!\\)\]=[attributes]
(?su)[\\]?(?P<name>pi):(?P<target>\S*?)\[(?P<passtext>.*?)(?<!\\)\]=[attributes]
# Triple-plus and double-dollar inline passthroughs.
@@ -235,7 +235,7 @@ endif::asciidoc7compatible[] # Passthrough macros.
(?u)^(?P<name>pass)::(?P<subslist>\S*?)(\[(?P<passtext>.*?)\])$=#[]
-(?u)^(?P<name>cdata)::(?P<subslist>\S*?)(\[(?P<passtext>.*?)\])$=#[attributes]
+(?u)^(?P<name>cdata|comment)::(?P<subslist>\S*?)(\[(?P<passtext>.*?)\])$=#[attributes]
(?u)^(?P<name>pi)::(?P<target>\S*?)(\[(?P<passtext>.*?)\])$=#[attributes]
(?u)^(?P<name>image)::(?P<target>\S*?)(\[(?P<attrlist>.*?)\])$=#
@@ -280,6 +280,7 @@ subs=attributes,macros posattrs=style
pass-style=template="passblock",subs=[]
cdata-style=template="cdatablock",subs="attributes"
+comment-style=template="commentblock",subs="attributes"
[blockdef-listing]
delimiter=^-{4,}$
@@ -451,6 +452,15 @@ template::[cdata-blockmacro] [cdatablock]
<![CDATA[|]]>
+[comment-blockmacro]
+<!-- {passtext} -->
+
+[comment-inlinemacro]
+template::[comment-blockmacro]
+
+[commentblock]
+<!-- | -->
+
[pi-blockmacro]
<?{target}{passtext? {passtext}}?>
|