diff options
author | Stuart Rackham <srackham@methods.co.nz> | 2008-12-11 13:08:43 +1300 |
---|---|---|
committer | Stuart Rackham <srackham@methods.co.nz> | 2008-12-11 13:08:43 +1300 |
commit | 4946ca399208c6b694eb47b5305807a934da59ec (patch) | |
tree | 0c8d80a5fe637cf893a189415e67ac68aaf31351 /asciidoc.conf | |
parent | c4b7036de1e44d2f4442a68ae3820d8db8a057a2 (diff) | |
download | asciidoc-4946ca399208c6b694eb47b5305807a934da59ec.tar.gz |
A generalized AttributeEntry syntax to allow arbitrary configuration file entries to be set from within an AsciiDoc document (suggested by Henrik Maier).
Diffstat (limited to 'asciidoc.conf')
-rw-r--r-- | asciidoc.conf | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/asciidoc.conf b/asciidoc.conf index f0d358a..37284f4 100644 --- a/asciidoc.conf +++ b/asciidoc.conf @@ -18,7 +18,7 @@ encoding=UTF-8 quirks=
empty=
# Attribute and AttributeList element patterns.
-attributeentry-pattern=^:(?P<attrname>[a-zA-Z0-9].*?):(?P<attrvalue>.*)$
+attributeentry-pattern=^:(?P<attrname>\w[^.]*?)(\.(?P<attrname2>.*?))?:(\s+(?P<attrvalue>.*))?$
attributelist-pattern=(?u)(^\[\[(?P<id>[\w\-_]+)\]\]$)|(^\[(?P<attrlist>.*)\]$)
# Substitution attributes for escaping AsciiDoc processing.
amp=&
|