Skip to content

C/C++ incorrect syntax region #55

@idnsunset

Description

@idnsunset

Hi,
I attempted to add 'c': ['c'] to the g:rst_syntax_code_list to enable C syntax highlighting but run into the issue with c and cpp code blocks as described below.

Given the following rst text:

.. code:: cpp
   using namespace std;

   int main() {}

using

Both 'using' are highlighted as C++ statement. It seems that 'c' and 'cpp' cannot be specified simultaneously in g:rst_syntax_code_list.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions