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

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.