diff options
author | Stuart Rackham <srackham@methods.co.nz> | 2009-01-15 09:37:04 +1300 |
---|---|---|
committer | Stuart Rackham <srackham@methods.co.nz> | 2009-01-15 09:37:04 +1300 |
commit | 77f7764bc1ebab90a39f93f565ab5c1a291665b8 (patch) | |
tree | 84586c2973a02b4e11788492b5ca9a3deaf86f43 /asciidoc.conf | |
parent | 9aa65586bf1f3c5e34fa940d9f66c8ee7a4dbe54 (diff) | |
download | asciidoc-77f7764bc1ebab90a39f93f565ab5c1a291665b8.tar.gz |
Implemented inline comment macro so comment lines can appear inside block elements.
Diffstat (limited to 'asciidoc.conf')
-rw-r--r-- | asciidoc.conf | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/asciidoc.conf b/asciidoc.conf index 99f316d..35e0e0a 100644 --- a/asciidoc.conf +++ b/asciidoc.conf @@ -219,6 +219,9 @@ endif::asciidoc7compatible[] (?su)[\\]?\+\+\+(?P<passtext>.*?)\+\+\+=pass[]
(?su)[\\]?\$\$(?P<passtext>.*?)\$\$=pass[specialcharacters]
+# Inline comment.
+(?mu)^[\\]?//(?P<passtext>[^/].*|)$=comment
+
# Default (catchall) inline macro is not implemented so there is no ambiguity
# with previous definition that could result in double substitution of escaped
# references.
@@ -244,9 +247,6 @@ endif::asciidoc7compatible[] delimiter=^/{4,}
options=skip
-[comment-blockmacro]
-# Outputs nothing.
-
[blockdef-sidebar]
delimiter=^\*{4,}$
template=sidebarblock
@@ -426,6 +426,12 @@ asciidoc-style=tags="asciidoc",subs=[],filter='python "{asciidoc-file}" -b {back #----------------------------------------
# Common block and macro markup templates
#----------------------------------------
+[comment-inlinemacro]
+# Outputs nothing.
+
+[comment-blockmacro]
+# Outputs nothing.
+
[pass-blockmacro]
{passtext}
|