better-cpp-syntax
better-cpp-syntax copied to clipboard
💾 The source of VS Code's C++ syntax highlighting
**Type:** Bug **Description:** Having a function return a constant reference (`T const&`) breaks syntax highlighting for that function declaration. **Severity:** Little-to-none. There's no loss of productivity arising from this bug,...
It looks like new used to be keyword.control.cpp. Now it is keyword.operator.memory.new.cpp. Is this intentional? If it's intentional, we can add the it into the themes in VS Code, but...
Checklist - [ ] This problem exists even with the setting `"C_Cpp.enhancedColorization": "Disabled"` ## The code with a problem is: ```cpp #include std::vector test(1
Checklist - [ ] This problem exists even with the setting `"C_Cpp.enhancedColorization": "Disabled"` If Disabling that^ makes the problem go away, then follow this to make an issue on the...
Consider the following code: ```c++ bool test1(int a) { return true; } bool test2(int a) { return true; } ``` Using inspect tokens and scopes, we see that `test1` is...
> This will get you the bleeding-edge syntax highlighting for C++. Which means your theme will be able to color your code better. This used to be a fix, but...
Checklist - [V ] This problem exists even with the setting `"C_Cpp.enhancedColorization": "Disabled"` ## It looks like:  ## It should look like: 
  _Originally posted by @peaceshi in https://github.com/jeff-hykin/cpp-textmate-grammar/issues/365#issuecomment-523874094_ @peaceshi What file is this from?
https://docs.microsoft.com/en-us/cpp/cpp/int8-int16-int32-int64?view=vs-2019 https://docs.microsoft.com/en-us/cpp/cpp/keywords-cpp?view=vs-2019 https://docs.microsoft.com/en-us/cpp/cpp/fundamental-types-cpp?view=vs-2019
The following preprocessor directives expect an sequence of non-whitespace, non-comment characters on the __same__ line as the directive: - `#if` - `#ifdef` - `#ifndef` - `#elif` - `#pragma` - `#undef`...