diff options
author | Maxime Dénès <mail@maximedenes.fr> | 2018-03-11 00:00:09 +0100 |
---|---|---|
committer | Maxime Dénès <mail@maximedenes.fr> | 2018-03-12 09:58:45 +0100 |
commit | 16b4db7d5d5ee64c09d02db6305799673d7efa80 (patch) | |
tree | f94b95f74a6a2be68e57a83f79e267765563a1b1 /doc/tools/coqrst/notations/html.py | |
parent | 33c5d8d00cb017c61141ee0d6b7cb8f672a3e691 (diff) |
[Sphinx] Add a few grammar constructions
Code from Paul Steckler (MIT).
Diffstat (limited to 'doc/tools/coqrst/notations/html.py')
-rw-r--r-- | doc/tools/coqrst/notations/html.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/tools/coqrst/notations/html.py b/doc/tools/coqrst/notations/html.py index d91bbb64c..44212d788 100644 --- a/doc/tools/coqrst/notations/html.py +++ b/doc/tools/coqrst/notations/html.py @@ -42,6 +42,9 @@ class TacticNotationsToHTMLVisitor(TacticNotationsVisitor): def visitHole(self, ctx:TacticNotationsParser.HoleContext): tags.span(ctx.ID().getText()[1:], _class="hole") + def visitMeta(self, ctx:TacticNotationsParser.MetaContext): + tags.span(ctx.METACHAR().getText()[1:], _class="meta") + def visitWhitespace(self, ctx:TacticNotationsParser.WhitespaceContext): tags.span(" ") # TODO: no need for a <span> here |