On Mon, Nov 28, 2022, 1:46 AM Muhammad Arslan Raza <mr.ar.r...@gmail.com>
wrote:

>
> On Sun, Nov 20, 2022, 2:21 PM 'aziz khan' via sphinx-users <
> sphinx-users@googlegroups.com> wrote:
>
>> Thanks, I'll check it out!
>>
>>
>> On Friday, November 18, 2022 at 05:33:11 PM GMT+3, bradley...@gmail.com <
>> bradley.m.b...@gmail.com> wrote:
>>
>>
>> The following test indicates this is a problem with sphinx and not
>> pygments.
>> I copied and pastered source/temp.cpp into the pygments Demo
>> https://pygments.org/demo/
>> with Language C++ and it works fine:
>>
>> On Wednesday, November 16, 2022 at 2:54:14 PM UTC-7 bradley...@gmail.com
>> wrote:
>>
>> Suppose the following file is named soruce/temp.cpp:
>>
>>     double f(
>>         double x // '(x)
>>     )
>>    {  return x; }
>>
>> If I put the following command in my sphinx-quickstart source/index.rst
>> file below the toctree command:
>>
>>     .. literalinclude:: temp.cpp
>>        :language: cpp
>>
>> and I execute the following command
>>
>>     sphinx-build -b html source build
>>
>> I get the following error message
>>
>>    ...  sphinx/source/index.rst:14: WARNING: Could not lex literal_block
>> as "cpp". ...
>>
>> If, in temp.cpp,  I change the '(x) to (x) , the warning goes away and
>> the file gets highlighted. It seems to me this change should not make any
>> difference because it is inside a C++ comment.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "sphinx-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to sphinx-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>>
>> https://groups.google.com/d/msgid/sphinx-users/3114c31e-ffeb-4445-8fff-acb341b67bbfn%40googlegroups.com
>> <https://groups.google.com/d/msgid/sphinx-users/3114c31e-ffeb-4445-8fff-acb341b67bbfn%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "sphinx-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to sphinx-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/sphinx-users/1601232260.2615963.1668936063389%40mail.yahoo.com
>> <https://groups.google.com/d/msgid/sphinx-users/1601232260.2615963.1668936063389%40mail.yahoo.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sphinx-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sphinx-users/CAL3oy9hTdNfNfVeo7hw_4Qkdma5MzLFwup-8b9J5R4isTwKAgg%40mail.gmail.com.

Reply via email to