1.1 --- a/moinformat/parsers/moin.py Tue Jul 17 23:30:23 2018 +0200
1.2 +++ b/moinformat/parsers/moin.py Mon Jul 23 16:03:34 2018 +0200
1.3 @@ -489,7 +489,9 @@
1.4 group("args", ".*?"), "\n")), # text-excl-nl
1.5
1.6 # Region contents:
1.7 - # Line-oriented patterns:
1.8 +
1.9 + # Line-oriented patterns support features which require their own
1.10 + # separate lines.
1.11
1.12 "break" : r"^(\s*?)\n", # blank line
1.13
1.14 @@ -541,7 +543,10 @@
1.15 "tablerow" : r"^\|\|", # ||
1.16
1.17 # Region contents:
1.18 - # Inline patterns:
1.19 +
1.20 + # Inline patterns are for markup features that appear within blocks.
1.21 + # The patterns below start inline spans that can contain other markup
1.22 + # features.
1.23
1.24 "fontstyle" : group("style", repeat("'", 2, 6)), # ''...
1.25 "larger" : r"~\+", # ~+
1.26 @@ -553,14 +558,15 @@
1.27 "super" : r"\^", # ^
1.28 "underline" : r"__", # __
1.29
1.30 - # Complete inline patterns:
1.31 + # Complete inline patterns are for markup features that do not support
1.32 + # arbitrary content within them:
1.33
1.34 "link" : join((r"\[\[", # [[
1.35 group("target", ".*?"), # target
1.36 optional(join((r"\|", group("text", ".*?")))), # | text (optional)
1.37 "]]")), # ]]
1.38
1.39 - # Inline contents:
1.40 + # Ending patterns for inline features:
1.41
1.42 "largerend" : r"\+~", # +~
1.43 "monospaceend" : r"`", # `
1.44 @@ -623,7 +629,7 @@
1.45
1.46
1.47
1.48 - # Pattern details.
1.49 + # Patterns available within certain markup features.
1.50
1.51 table_pattern_names = [
1.52 "attrname", "colour", "colspan", "halign", "rowspan", "tableattrsend",