jeff-hykin / better-cpp-syntax

💾 The source of VS Code's C++ syntax highlighting
GNU General Public License v3.0
155 stars 30 forks source link

Highlighting Incorrect After Shimming Ostream Operator #647

Closed marek-travnikar closed 4 months ago

marek-travnikar commented 1 year ago

Checklist

If Disabling that^ makes the problem go away, then follow this to make an issue on the C++ extension: https://github.com/microsoft/vscode-cpptools/issues/new/choose

The code with a problem is:

Version 1.17.2 After shimming an ostream operator anywhere in a C++ file, the syntax highlighting becomes incorrect after that point.

It looks like:

With Default Dark+:

image

It should look like:

After manually tweaking some regex for template_call_range from "end": ">", -> "end": ">|;",

image