diff mbox series

[07/11] docs/sphinx/qmp_lexer: Highlight elisions like comments, not prompts

Message ID 20250404121413.1743790-8-armbru@redhat.com (mailing list archive)
State New
Headers show
Series qapi: Documentation improvements | expand

Commit Message

Markus Armbruster April 4, 2025, 12:14 p.m. UTC
Signed-off-by: Markus Armbruster <armbru@redhat.com>
---
 docs/sphinx/qmp_lexer.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/docs/sphinx/qmp_lexer.py b/docs/sphinx/qmp_lexer.py
index 1bd1b81b70..7b3b808d12 100644
--- a/docs/sphinx/qmp_lexer.py
+++ b/docs/sphinx/qmp_lexer.py
@@ -24,7 +24,7 @@  class QMPExampleMarkersLexer(RegexLexer):
         'root': [
             (r'-> ', token.Generic.Prompt),
             (r'<- ', token.Generic.Prompt),
-            (r'\.{3}( .* \.{3})?', token.Generic.Prompt),
+            (r'\.{3}( .* \.{3})?', token.Comment.Multiline),
         ]
     }