summaryrefslogtreecommitdiff
path: root/src/rst_parser.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/rst_parser.lua')
-rw-r--r--src/rst_parser.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/rst_parser.lua b/src/rst_parser.lua
index 93d8a11..3928161 100644
--- a/src/rst_parser.lua
+++ b/src/rst_parser.lua
@@ -127,6 +127,12 @@ state.addme = {}
local valid_adornment
do
+ --[[--
+
+ valid_adornment -- This subpattern tests if the string consists
+ entirely of one repeated adornment char.
+
+ --]]--
local first_adornment = ""
local adornment_char = S[[!"#$%&'()*+,-./:;<=>?@[]^_`{|}~]] + P[[\\]]
local check_first = Cmt(adornment_char, function(_,_, first)