Jeroen Dobbelaere via llvm-dev
2020-Jun-18 08:49 UTC
[llvm-dev] sphinx and 'llvm-ir' syntax highlighting
Hi all, I am in the process of updating documentation for the `full restrict patches` and I noticed that sphinx stops highlighting llvm-ir fragments (code-block:: llvm) when load/store instructions get extra arguments. Is this highlighter part of 'llvm' ? If so, could anybody point me to the location of it ? Thanks, Jeroen Dobbelaere
Manuel Jacob via llvm-dev
2020-Jun-18 10:25 UTC
[llvm-dev] sphinx and 'llvm-ir' syntax highlighting
On 2020-06-18 10:49, Jeroen Dobbelaere via llvm-dev wrote:> Hi all, > > I am in the process of updating documentation for the `full restrict > patches` and I noticed that sphinx stops > highlighting llvm-ir fragments (code-block:: llvm) when load/store > instructions get extra arguments. > > Is this highlighter part of 'llvm' ? If so, could anybody point me to > the location of it ?Sphinx uses Pygments for syntax highlighting. You can find the code in https://github.com/pygments/pygments/blob/2.6.1/pygments/lexers/asm.py#L345 . Improving the syntax highlighting requires sending a pull request to Pygments and updating the server to use the new Pygments version.> Thanks, > > Jeroen Dobbelaere > > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev