Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected macro syntax error when macro is in an expression #60812

Closed
xisui-MSFT opened this issue Oct 12, 2018 · 2 comments
Closed

Unexpected macro syntax error when macro is in an expression #60812

xisui-MSFT opened this issue Oct 12, 2018 · 2 comments
Labels
grammar Syntax highlighting grammar upstream Issue identified as 'upstream' component related (exists outside of VS Code)

Comments

@xisui-MSFT
Copy link
Contributor

Issue Type: Bug

Example:
#ifdef TEST
int func(int a,
#else
int func2(int a,
#endif
int b);

Error: #else and #endif are red since it thinks there are syntax errors.
Expected: parse correctly.

VS Code version: Code 1.26.0 (4e93618, 2018-08-13T16:29:31.933Z)
OS version: Windows_NT x64 10.0.17134

System Info
Item Value
CPUs Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz (8 x 3600)
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: enabled
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
Memory (System) 63.92GB (39.86GB free)
Process Argv C:\Program Files\Microsoft VS Code\Code.exe
Screen Reader no
VM 0%
@vscodebot
Copy link

vscodebot bot commented Oct 12, 2018

(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

@mjbvz mjbvz added the *caused-by-extension Issue identified to be caused by an extension label Oct 12, 2018
@vscodebot vscodebot bot closed this as completed Oct 12, 2018
@mjbvz mjbvz added upstream Issue identified as 'upstream' component related (exists outside of VS Code) grammar Syntax highlighting grammar and removed *caused-by-extension Issue identified to be caused by an extension labels Oct 12, 2018
@mjbvz
Copy link
Collaborator

mjbvz commented Oct 12, 2018

Nevermind on that caused-by-extension, this is a grammar issue.

We pull in our c/c++ grammar from here. Please file this issue upstream

@microsoft microsoft deleted a comment from vscodebot bot Oct 12, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 27, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
grammar Syntax highlighting grammar upstream Issue identified as 'upstream' component related (exists outside of VS Code)
Projects
None yet
Development

No branches or pull requests

2 participants