diff options
author | Stuart Rackham <srackham@methods.co.nz> | 2008-08-29 10:32:09 +1200 |
---|---|---|
committer | Stuart Rackham <srackham@methods.co.nz> | 2008-08-29 10:32:09 +1200 |
commit | b0f17e10f79f33e6dd382dbb60ffd80a0caaf58d (patch) | |
tree | 449f1336188835024aea483758deeb02f95fbfa9 | |
parent | c8864894ee10c744b7e72d392a8aa52c59dca5ab (diff) | |
download | asciidoc-b0f17e10f79f33e6dd382dbb60ffd80a0caaf58d.tar.gz |
Added IRC URLs to AsciiDoc inline macros.
-rw-r--r-- | asciidoc.conf | 8 | ||||
-rw-r--r-- | docbook.conf | 2 | ||||
-rw-r--r-- | html4.conf | 2 | ||||
-rw-r--r-- | vim/syntax/asciidoc.vim | 2 | ||||
-rw-r--r-- | xhtml11.conf | 2 |
5 files changed, 11 insertions, 5 deletions
diff --git a/asciidoc.conf b/asciidoc.conf index 66106c8..a7306ca 100644 --- a/asciidoc.conf +++ b/asciidoc.conf @@ -170,14 +170,14 @@ CAUTION-style=template="admonitionparagraph",name="caution",caption="{caution_ca # (?s) re flag for line spanning.
# URLs, images and links with attribute list. Explicit so they can be nested.
-(?su)[\\]?(?P<name>http|https|ftp|file|mailto|callto|image|link):(?P<target>\S*?)(\[(?P<attrlist>.*?)\])=
+(?su)[\\]?(?P<name>http|https|ftp|file|irc|mailto|callto|image|link):(?P<target>\S*?)(\[(?P<attrlist>.*?)\])=
# These URL types don't require any special attribute list formatting.
-(?su)(?<!\S)[\\]?(?P<name>http|https|ftp|file):(?P<target>//[^ \t<>]*[\w/])=
+(?su)(?<!\S)[\\]?(?P<name>http|https|ftp|file|irc):(?P<target>//[^ \t<>]*[\w/])=
# Allow a leading parenthesis.
-(?su)(?<\=\()[\\]?(?P<name>http|https|ftp|file):(?P<target>//[^ \t<>]*[\w/])=
+(?su)(?<\=\()[\\]?(?P<name>http|https|ftp|file|irc):(?P<target>//[^ \t<>]*[\w/])=
# Allow <> brackets.
-(?su)[\\]?<(?P<name>http|https|ftp|file):(?P<target>//[^ \t<>]*[\w/])>=
+(?su)[\\]?<(?P<name>http|https|ftp|file|irc):(?P<target>//[^ \t<>]*[\w/])>=
# Email addresses don't require special attribute list formatting.
# The before ">: and after "< character exclusions stop multiple substitution.
diff --git a/docbook.conf b/docbook.conf index 4742134..74a6a86 100644 --- a/docbook.conf +++ b/docbook.conf @@ -160,6 +160,8 @@ $$passthrough=| <ulink url="{name}:{target}">{0={name}:{target}}</ulink>
[file-inlinemacro]
<ulink url="{name}:{target}">{0={name}:{target}}</ulink>
+[irc-inlinemacro]
+<ulink url="{name}:{target}">{0={name}:{target}}</ulink>
[mailto-inlinemacro]
<ulink url="mailto:{target}">{0={target}}</ulink>
[callto-inlinemacro]
@@ -113,6 +113,8 @@ passthrough=<span{0? style="}{1?color: {1};}{2?background-color: {2};}{3?font-si <a href="{name}:{target}">{0={name}:{target}}</a>
[file-inlinemacro]
<a href="{name}:{target}">{0={name}:{target}}</a>
+[irc-inlinemacro]
+<a href="{name}:{target}">{0={name}:{target}}</a>
[mailto-inlinemacro]
<a href="mailto:{target}">{0={target}}</a>
[callto-inlinemacro]
diff --git a/vim/syntax/asciidoc.vim b/vim/syntax/asciidoc.vim index 9590336..e3817f8 100644 --- a/vim/syntax/asciidoc.vim +++ b/vim/syntax/asciidoc.vim @@ -30,7 +30,7 @@ syn match asciidocRuler /^'\{4,}$/ syn region asciidocLiteralParagraph start=/^\n[ \t]\+\(\([^-*. \t] \)\|\(\S\S\)\)/ end=/\(^+\?\s*$\)\@=/ syn match asciidocListBullet /^\s*[-*+]\s/ syn match asciidocListNumber /^\s*\(\(\d\+\.\)\|\.\{1,2}\|\(\l\.\)\)\s\+/ -syn match asciidocURL /\\\@<!\<\(http\|https\|ftp\|file\):\/\/[^| \t]*\(\w\|\/\)/ +syn match asciidocURL /\\\@<!\<\(http\|https\|ftp\|file\|irc\):\/\/[^| \t]*\(\w\|\/\)/ syn match asciidocEmail /\\\@<!\(\<\|<\)\w\(\w\|[.-]\)*@\(\w\|[.-]\)*\w>\?[0-9A-Za-z_.]\@!/ syn match asciidocAttributeRef /\\\@<!{\w\(\w\|-\)*\([=!@#$%?:].*\)\?}/ syn match asciidocAdmonition /^\u\{3,15}:\(\s\+.*\)\@=/ diff --git a/xhtml11.conf b/xhtml11.conf index 1c84eaf..333aa85 100644 --- a/xhtml11.conf +++ b/xhtml11.conf @@ -124,6 +124,8 @@ $$passthrough=<span{0? style="}{1?color: {1};}{2?background-color: {2};}{3?font- <a href="{name}:{target}">{0={name}:{target}}</a>
[file-inlinemacro]
<a href="{name}:{target}">{0={name}:{target}}</a>
+[irc-inlinemacro]
+<a href="{name}:{target}">{0={name}:{target}}</a>
[mailto-inlinemacro]
<a href="mailto:{target}">{0={target}}</a>
[link-inlinemacro]
|