Macro ifdef incorrectly parsed #12879
Labels
bug
Feature: Colorization
fixed
Check the Milestone for the release in which the fix is or will be available.
Language Service
regression
A bug that didn't exist in a previous release
world ready
An issue relating string character encodings, localization translations, etc.
Milestone
Environment
Bug Summary and Steps to Reproduce
Bug Summary:
I found that when Chinese characters appear in the middle of an ifdef macro, the code parsing will be incorrect.
The below screenshots show the issue. A very strange problem.
The first image is correct, while the parsing in the second and third images is incorrect.
By the way, I tested version 1.21.6 of the C/C++ extension and didn't encounter this issue.
Configuration and Logs
Here is c_cpp_properties.json
{
"configurations": [
{
"name": "Linux",
"includePath": [
"${workspaceFolder}/**"
],
"defines": [],
"compilerPath": "/usr/local/bin/clang",
"intelliSenseMode": "linux-clang-x64"
}
],
"version": 4
}
Other Extensions
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: