<div dir="ltr">Okay, given that the Pygments lexer is sensitive about its input, I can understand that you do "::" instead of ".. code-block:: llvm".  The colorizers I normally use do things through simple regular expressions for which reason they are quite robust and should be able to handle the syntax examples as well.<div>
<br></div><div>I just wanted the syntax examples to be colorized as well, but given the above, that doens't make sense.<br><div><br></div><div>Please just ignore my patch.  </div></div><div><br></div><div>-- Mikael</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/11/25 Sean Silva <span dir="ltr"><<a href="mailto:chisophugis@gmail.com" target="_blank">chisophugis@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Nov 24, 2013 at 10:19 PM, Mikael Lyngvig <span dir="ltr"><<a href="mailto:mikael@lyngvig.org" target="_blank">mikael@lyngvig.org</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>The language reference uses "::" many places where it seems it should be using ".. code-block:: llvm".  The result is that Sphinx does not colorize these samples.</div>


<div><br></div><div>Should I fix this?  Or is it purposeful?</div></div></blockquote><div><br></div><div>Could you give an example of what you are seeing? I don't really see any examples of the issue you are mentioning. FWIW, things that are syntax examples are "::" since they often contain meta-syntax e.g. `<result> = fsub [fast-math flags]* <ty> <op1>, <op2>`.</div>

<div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><br></div>
<div>
Also, anybody but me that has noticed that Sphinx does not always colorize things even if you put the proper ".. code-block:: llvm" in front?  If it is a known issue, I won't file a bug with the Sphinx people.</div>

</div></blockquote><div><br></div><div>The Pygments lexer is sort of "brittle" and will fail to syntax highlight things if they stray too far from the lexical syntax it expects (due to being out of date or misspecified in the Pygments highlighter). You should check that the upstream has the same issue <<a href="https://bitbucket.org/birkenfeld/pygments-main/src/9246d7a47a42e7920c0ecee4d4946b982e9e2430/pygments/lexers/asm.py?at=default#cl-193" target="_blank">https://bitbucket.org/birkenfeld/pygments-main/src/9246d7a47a42e7920c0ecee4d4946b982e9e2430/pygments/lexers/asm.py?at=default#cl-193</a>>. We may just need to update to the latest sphinx.</div>

<div><br></div><div>-- Sean Silva</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">

<span><font color="#888888">
<div><br></div><div><br></div><div>-- Mikael</div><div><br></div></font></span></div>
<br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br></blockquote></div><br></div></div>
</blockquote></div><br></div>