summaryrefslogtreecommitdiff
path: root/asciidoc.conf
diff options
context:
space:
mode:
authorStuart Rackham <srackham@methods.co.nz>2008-11-18 07:11:20 +1300
committerStuart Rackham <srackham@methods.co.nz>2008-11-18 07:11:20 +1300
commit4a9d61b66c39c80dc0dc09296af5b1f1125af63f (patch)
tree6073ae64e5cdd4aadd283ea53bbd9003460caa33 /asciidoc.conf
parent9bd63ee49be8a4e31ec51e8bb373dba064050ff2 (diff)
downloadasciidoc-4a9d61b66c39c80dc0dc09296af5b1f1125af63f.tar.gz
New inline passthrough macros implemented.
Diffstat (limited to 'asciidoc.conf')
-rw-r--r--asciidoc.conf21
1 files changed, 18 insertions, 3 deletions
diff --git a/asciidoc.conf b/asciidoc.conf
index 1f4a52b..1027e81 100644
--- a/asciidoc.conf
+++ b/asciidoc.conf
@@ -210,15 +210,30 @@ endif::asciidoc7compatible[]
# Callout
[\\]?&lt;(?P<index>\d+)&gt;=callout
+# Passthrough macros.
+(?su)[\\]?(?P<name>math|passthrough):(\[(?P<attrlist>.*?)\])=[]
+(?su)[\\]?(?P<name>verbatim):(\[(?P<attrlist>.*?)\])=passthrough[specialcharacters,attributes]
+(?su)[\\]?(?P<name>cdata):(\[(?P<attrlist>.*?)\])=[attributes]
+(?su)[\\]?(?P<name>pi):(?P<target>\S*?)(\[(?P<attrlist>.*?)\])=[attributes]
+
+# Deprecated triple-plus and double-dollar passthrough syntax.
+(?su)[\\]?\+\+\+(?P<attrlist>.*?)\+\+\+=passthrough[]
+(?su)[\\]?\$\$(?P<attrlist>.*?)\$\$=passthrough[specialcharacters]
+
# Default inline macro (listed last as a catchall)).
(?su)[\\]?(?P<name>\w(\w|-)*?):(?P<target>\S*?)(\[(?P<attrlist>.*?)\])=
# Block macros.
-(?u)^(?P<name>\w(\w|-)*?)::(?P<target>\S*?)(\[(?P<attrlist>.*?)\])$=#
^'{3,}$=#ruler
^<{3,}$=#pagebreak
^//([^/].*|)$=#comment
+# Passthrough macros.
+(?u)^(?P<name>pi)::(?P<target>\S*?)(\[(?P<attrlist>.*?)\])$=#[attributes]
+
+# Default block macro (listed last as a catchall)).
+(?u)^(?P<name>\w(\w|-)*?)::(?P<target>\S*?)(\[(?P<attrlist>.*?)\])$=#
+
# System macros.
# This default system macro is hardwired into asciidoc.
#(?u)^(?P<name>\w(\w|-)*?)::(?P<target>\S*?)(\[(?P<attrlist>.*?)\])$=+
@@ -369,7 +384,7 @@ delimiter=^\|={3,}$
# Like normal subs but quotes are substituted a second time after attributes so
# {include:} contents are marked up (maybe this should be the system wide
# asciidoc.py SUBS_NORMAL).
-subs=specialcharacters,quotes,attributes,quotes,specialwords,replacements,macros,passthroughs
+subs=specialcharacters,quotes,attributes,quotes,specialwords,replacements,macros
posattrs=style
template=table
verse-style=tags="verse"
@@ -383,7 +398,7 @@ asciidoc-style=tags="asciidoc",subs=[],filter='python "{asciidoc-file}" -b {back
# Same as [tabledef-default] but with different delimiter and separator.
delimiter=^!={3,}$
separator=((?P<cellcount>\d+)\*)?!
-subs=specialcharacters,quotes,attributes,quotes,specialwords,replacements,macros,passthroughs
+subs=specialcharacters,quotes,attributes,quotes,specialwords,replacements,macros
posattrs=style
template=table
verse-style=tags="verse"