File tree Expand file tree Collapse file tree 5 files changed +8
-6
lines changed Expand file tree Collapse file tree 5 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -1029,7 +1029,9 @@ used.
1029
1029
QMP Examples can be added by using the ``.. qmp-example:: `` directive.
1030
1030
In its simplest form, this can be used to contain a single QMP code
1031
1031
block which accepts standard JSON syntax with additional server
1032
- directionality indicators (``-> `` and ``<- ``), and elisions (``... ``).
1032
+ directionality indicators (``-> `` and ``<- ``), and elisions. An
1033
+ elision is commonly ``... ``, but it can also be or a pair of ``... ``
1034
+ with text in between.
1033
1035
1034
1036
Optionally, a plaintext title may be provided by using the ``:title: ``
1035
1037
directive option. If the title is omitted, the example title will
@@ -1062,7 +1064,7 @@ For example::
1062
1064
# "device": "ide0-hd0",
1063
1065
# ...
1064
1066
# }
1065
- # ...
1067
+ # ... more ...
1066
1068
# ] }
1067
1069
#
1068
1070
# Above, lengthy output has been omitted for brevity.
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ class QMPExampleMarkersLexer(RegexLexer):
24
24
'root' : [
25
25
(r'-> ' , token .Generic .Prompt ),
26
26
(r'<- ' , token .Generic .Prompt ),
27
- (r' ? \.{3} ?' , token .Generic .Prompt ),
27
+ (r'\.{3}( .* \.{3}) ?' , token .Generic .Prompt ),
28
28
]
29
29
}
30
30
Original file line number Diff line number Diff line change 212
212
#
213
213
# -> "this example"
214
214
#
215
- # <- " has no title"
215
+ # <- ... has no title ...
216
216
##
217
217
{ 'command' : 'cmd-boxed' , 'boxed' : true ,
218
218
'data' : 'Object' ,
Original file line number Diff line number Diff line change @@ -217,7 +217,7 @@ another feature
217
217
218
218
-> "this example"
219
219
220
- <- " has no title"
220
+ <- ... has no title ...
221
221
doc symbol=EVT_BOXED
222
222
body=
223
223
Original file line number Diff line number Diff line change @@ -264,7 +264,7 @@ Example::
264
264
265
265
-> "this example"
266
266
267
- <- " has no title"
267
+ <- ... has no title ...
268
268
269
269
270
270
"EVT_BOXED" (Event)
You can’t perform that action at this time.
0 commit comments