aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/tools/coqrst/notations/regexp.py
diff options
context:
space:
mode:
Diffstat (limited to 'doc/tools/coqrst/notations/regexp.py')
-rw-r--r--doc/tools/coqrst/notations/regexp.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/tools/coqrst/notations/regexp.py b/doc/tools/coqrst/notations/regexp.py
index cac6aaecb..ea820c719 100644
--- a/doc/tools/coqrst/notations/regexp.py
+++ b/doc/tools/coqrst/notations/regexp.py
@@ -47,6 +47,9 @@ class TacticNotationsToRegexpVisitor(TacticNotationsVisitor):
def visitHole(self, ctx:TacticNotationsParser.HoleContext):
self.buffer.write("([^();. \n]+)") # FIXME could allow more things
+ def visitMeta(self, ctx:TacticNotationsParser.MetaContext):
+ self.buffer.write(re.escape(ctx.METACHAR().getText()[1:]))
+
def visitWhitespace(self, ctx:TacticNotationsParser.WhitespaceContext):
self.buffer.write(r"\s+")