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

new and delete keywords no longer highlighted in C++ file #71821

Closed
BrandonShockley opened this issue Apr 5, 2019 · 15 comments
Closed

new and delete keywords no longer highlighted in C++ file #71821

BrandonShockley opened this issue Apr 5, 2019 · 15 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug candidate Issue identified as probable candidate for fixing in the next release grammar Syntax highlighting grammar themes Color theme issues verified Verification succeeded

Comments

@BrandonShockley
Copy link

Issue Type: Bug

  1. Update to VSCode 1.33 from 1.32.3
  2. new and delete keywords no longer highlighted in C++ file

Doesn't change when disabling extensions.

VS Code version: Code 1.33.0 (0dd516d, 2019-04-04T15:14:28.026Z)
OS version: Windows_NT x64 10.0.17763

System Info
Item Value
CPUs Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz (8 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: enabled
surface_synchronization: enabled_on
video_decode: enabled
webgl: enabled
webgl2: enabled
Memory (System) 15.89GB (8.02GB free)
Process Argv
Screen Reader no
VM 0%
Extensions (19)
Extension Author (truncated) Version
vscode-test-explorer hbe 2.9.2
hex-fmt ker 1.0.0
vscode-catch2-test-adapter mat 2.4.3
rainbow-csv mec 1.0.0
python ms- 2019.3.6352
cpptools ms- 0.22.1
csharp ms- 1.18.0
veriloghdl msh 1.0.2
java red 0.42.1
shader sle 1.1.4
cmake twx 0.0.17
unity-debug Uni 2.7.2
vscodeintellicode Vis 1.1.5
vscode-java-debug vsc 0.17.0
vscode-java-dependency vsc 0.4.0
vscode-java-pack vsc 0.6.0
vscode-java-test vsc 0.15.1
vscode-maven vsc 0.16.0
vscode-todo-highlight way 1.0.4
@Andrew088
Copy link

Hi! I'm new to this project and would like to be assigned to this bug as well.

@devvosaur
Copy link

This is true for other keywords: operator, and, or. I haven't checked all the other ones, so I cannot say there aren't more.

@aeschli aeschli assigned alexr00 and unassigned aeschli Apr 6, 2019
@mflan48
Copy link
Contributor

mflan48 commented Apr 7, 2019

Hi @alexr00, I would like to be assigned to this bug as well if possible.

@alexr00
Copy link
Member

alexr00 commented Apr 8, 2019

@jeff-hykin, 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, but ideally there wouldn't be too many changes like this since it requires constant updating of the themes.

@alexr00 alexr00 added bug Issue identified by VS Code Team member as probable bug grammar Syntax highlighting grammar themes Color theme issues and removed new release labels Apr 8, 2019
@alexr00 alexr00 added this to the April 2019 milestone Apr 8, 2019
@weinand weinand added the candidate Issue identified as probable candidate for fixing in the next release label Apr 9, 2019
alexr00 added a commit that referenced this issue Apr 9, 2019
alexr00 added a commit that referenced this issue Apr 10, 2019
* Revert C and C++ grammar change

Fixes #71821
@weinand
Copy link
Contributor

weinand commented Apr 10, 2019

@alexr00 this can be closed, right?

@weinand weinand closed this as completed Apr 10, 2019
@alexr00
Copy link
Member

alexr00 commented Apr 10, 2019

Yes, it is merged into the release branch.

@aeschli
Copy link
Contributor

aeschli commented Apr 10, 2019

Verified that fix is in stable d1875a0

@alexr00 Insider still shows the problem

@aeschli aeschli added the verified Verification succeeded label Apr 10, 2019
alexr00 added a commit that referenced this issue Apr 11, 2019
@alexr00
Copy link
Member

alexr00 commented Apr 11, 2019

I just pushed the first part of a fix to master, so it should be in the next insiders. There are still more theme updates to make, but this will fix at least new, delete, using, and typedef in insiders.

@tristan957
Copy link

This should be a blocking issue for the grammar update as well jeff-hykin/better-cpp-syntax#95

@alexr00
Copy link
Member

alexr00 commented Apr 15, 2019

@tristan957 thanks for the heads up. I'll update the grammar again for insiders.

@alexr00
Copy link
Member

alexr00 commented Apr 16, 2019

Updated grammar again.

@tristan957
Copy link

@alexr00, is the plan to move forward with https://github.com/jeff-hykin/cpp-textmate-grammar in future releases of VSCode?

This is more of an organizational question, but if Microsoft now owns GitHub, and by extension Atom, can't you guys just merge the original PRs? What is holding that back?

@alexr00
Copy link
Member

alexr00 commented Apr 17, 2019

The plan is to move forward with https://github.com/jeff-hykin/cpp-textmate-grammar. There are folks working in that repository to make a better and well maintained C++ grammar. 🎉

The old Atom TextMate grammar does not have anyone who wants to improve and maintain it. That includes merging PRs.

@jeff-hykin
Copy link

Thanks @alexr00 😁. We might break and misinterpret things some times, but I do want to be clear that we'll do whatever the community needs first.

Over the last few days I have been surprised with the number of important bugs though. I expected Beta testing would be effectively done by the people using the extension, and to some degree thats certainly true. I think most of them don't use the default theme though so I will start testing the default theme myself.

I've been looking into https://github.com/Microsoft/vscode-textmate to see if there is a way we can use it for integration testing which would help reduce regressions considerably. We added unit tests to the library awhile back and they've been helpful.

@jeff-hykin
Copy link

jeff-hykin commented Apr 17, 2019

@tristan957 You can expect that bugs as basic as the one you reported won't happen often in the future. The cause of that one was from initial port from json to ruby for the C syntax, which was a recent and involved several changes. We try to get high priority bugs fixed within 12 hours of them being posted, and try to implement easy fixes within 24 hours.

purefun pushed a commit to purefun/shape that referenced this issue May 17, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators May 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug candidate Issue identified as probable candidate for fixing in the next release grammar Syntax highlighting grammar themes Color theme issues verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

9 participants