qemu-block
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-block] [PATCH v3 2/3] sphinx: add qmp_lexer


From: Peter Maydell
Subject: Re: [Qemu-block] [PATCH v3 2/3] sphinx: add qmp_lexer
Date: Fri, 7 Jun 2019 11:27:43 +0100

On Mon, 3 Jun 2019 at 22:47, John Snow <address@hidden> wrote:
>
> Sphinx, through Pygments, does not like annotated json examples very
> much. In some versions of Sphinx (1.7), it will render the non-json
> portions of code blocks in red, but in newer versions (2.0) it will
> throw an exception and not highlight the block at all. Though we can
> suppress this warning, it doesn't bring back highlighting on non-strict
> json blocks.
>
> We can alleviate this by creating a custom lexer for QMP examples that
> allows us to properly highlight these examples in a robust way, keeping
> our directionality and elision notations.
>
> Signed-off-by: Eduardo Habkost <address@hidden>
> Signed-off-by: John Snow <address@hidden>

Reviewed-by: Peter Maydell <address@hidden>
(mostly reviewing the sphinx config bits -- I trust that
the actual lexer does what it says on the tin :-))

thanks
-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]