Open
Description
Environment
- OS and Version: Win10 x64
- VS Code Version: 1.89.1
- C/C++ Extension Version: v1.20.5
- If using SSH remote, specify OS of remote machine: No
Bug Summary and Steps to Reproduce
Bug Summary:
Special cases where variables are highlighted in the color of the macro definition
Steps to reproduce:
- Define two macro definitions, with macro definition 1 pointing to macro definition 2, and macro definition 2 pointing to an assignment statement, with macro definition 2 being longer than macro definition 1
- Use macro definition 1 and macro definition 2 respectively
- Macro Definition 1 has incorrect syntax highlighting in parentheses, but Macro Definition 2 is correct
- Local variables within the brackets of macro definition 1 are partially highlighted in the color of the macro definition and depend on the length of macro definition 2
Expected behavior:
Variables are correctly highlighted
Configuration and Logs
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/**"
],
"defines": [
"__TASKING__",
"BRS_COMP_TASKING"
],
"windowsSdkVersion": "10.0.19041.0",
"compilerPath": "",
"cStandard": "c17",
"cppStandard": "c++17",
"intelliSenseMode": "linux-gcc-x64"
}
],
"version": 4
}
Other Extensions
No response
Additional context
No response
Metadata
Metadata
Assignees
Type
Projects
Status
No status