1. Shlomi Fish
  2. asciidoc

Commits

Stuart Rackham  committed ad0d1c4

Constrained quotes can not be bounded on the left by a } character. See:
http://groups.google.com/group/asciidoc/browse_thread/thread/b24cc3362f35b801

  • Participants
  • Parent commits 4e9954f
  • Branches default

Comments (0)

Files changed (2)

File asciidoc.py

View file
             # The text within constrained quotes must be bounded by white space.
             # Non-word (\W) characters are allowed at boundaries to accomodate
             # enveloping quotes and punctuation e.g. a='x', ('x'), 'x', ['x'].
-            reo = re.compile(r'(?msu)(^|[^\w;:])(\[(?P<attrlist>[^[\]]+?)\])?' \
+            reo = re.compile(r'(?msu)(^|[^\w;:}])(\[(?P<attrlist>[^[\]]+?)\])?' \
                 + r'(?:' + re.escape(lq) + r')' \
                 + r'(?P<content>\S|\S.*?\S)(?:'+re.escape(rq)+r')(?=\W|$)')
         pos = 0

File tests/data/testcases.txt

View file
 
 (``++1\n++'') if (usually ``++-1\n++'')
 
+(`{author}') and `{author}'
+
 
 == Configuration attribute entries ==