Skip to content

Brace matching does not account for inactive regions #3681

@parindawm

Description

@parindawm

Issue Type: Bug

Capture17052019
please make test.cpp file using following code
#undef x
int main()
{
int a=0, b=0,c=0;
#ifndef x
if(b==2){
if(a==0){
}
else
#else
if(c==1){
#endif
a=1;
}// wrong matching
return 0;
}// wrong machine

Observe wrong bracket pairing at commented places. "// wrong machine"

Extension version: 0.23.1
VS Code version: Code 1.34.0 (a622c65b2c713c890fcf4fbf07cf34049d5fe758, 2019-05-15T21:59:37.030Z)
OS version: Windows_NT x64 6.1.7601

System Info
Item Value
CPUs Intel(R) Core(TM) i7-6600U CPU @ 2.60GHz (4 x 2808)
GPU Status 2d_canvas: enabled
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: unavailable_off
surface_synchronization: enabled_on
video_decode: enabled
webgl: enabled
webgl2: unavailable_off
Load (avg) undefined
Memory (System) 15.89GB (7.41GB free)
Process Argv
Screen Reader no
VM 0%

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions