diff options
author | Stuart Rackham <srackham@methods.co.nz> | 2009-03-06 14:23:38 +1300 |
---|---|---|
committer | Stuart Rackham <srackham@methods.co.nz> | 2009-03-06 14:23:38 +1300 |
commit | a1e87b11097187df45e0c34863b8d7d55d404e7e (patch) | |
tree | bd1a1afd59916495a9035f368c8ab2f50eea30c6 /asciidoc.conf | |
parent | aa79ef3d32aa58d02c9c3956df5e738317a4e632 (diff) | |
download | asciidoc-a1e87b11097187df45e0c34863b8d7d55d404e7e.tar.gz |
Implemented 'inline literal' passthrough element and updated documentation
files accordingly.
Diffstat (limited to 'asciidoc.conf')
-rw-r--r-- | asciidoc.conf | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/asciidoc.conf b/asciidoc.conf index eccece5..6400261 100644 --- a/asciidoc.conf +++ b/asciidoc.conf @@ -69,7 +69,9 @@ blocktitle=^\.(?P<title>([^.\s].*)|(\.[^.\s].*))$ ``|''=doublequoted
'=emphasis
`|'=singlequoted
+ifdef::no-inline-literal[]
`=monospaced
+endif::no-inline-literal[]
# +++ and $$ quoting is applied to the +++ and $$ inline passthrough
# macros to allow quoted attributes to be used.
# This trick only works with inline passthrough macros.
@@ -220,6 +222,11 @@ endif::asciidoc7compatible[] (?su)[\\]?\+\+\+(?P<passtext>.*?)\+\+\+=pass[]
(?su)[\\]?\$\$(?P<passtext>.*?)\$\$=pass[specialcharacters]
+# Inline literal.
+ifndef::no-inline-literal[]
+(?su)(?<!\w)([\\]?`(?P<passtext>\S|\S.*?\S)`)(?!\w)=literal[specialcharacters]
+endif::no-inline-literal[]
+
# Inline comment.
(?mu)^[\\]?//(?P<passtext>[^/].*|)$=comment[normal]
|