Skip to content

Embedding C++ code in latex is broken but C code works fine #76603

@jlelong

Description

@jlelong

I am a maintainer of LaTeX-Workshop and embedding C++ code stopped working with vscode 1.36.

The following piece of code embeds C++ inside LaTeX, but we never step out from cpp scope

\begin{listing}[htbp]
    \begin{minted}{cpp}
    int f() {
        return 0
    }
    \end{minted}
\end{listing}

Capture d’écran 2019-07-04 à 15 23 50

If instead of including source.cpp, we include source.c everything works fine

Capture d’écran 2019-07-04 à 15 23 23

This is related to James-Yu/LaTeX-Workshop/issues/1476. Let me know if we can help investigating the issue.

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugcandidateIssue identified as probable candidate for fixing in the next releasegrammarSyntax highlighting grammarverifiedVerification succeeded

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions