-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Syntax colourisation goes to hell after specifying a return type for a lambda. #13210
Comments
It seems as though I have solved my own issue. If i put space between the return type and the opening brace signifying the start of the function, the problem goes away. |
Re-opened this issue as i don't think formatting the code in a certain way should alter the syntax highlighting. |
Hi @GrubbyHalo . Could you try using the "Developer: Inspect Editor Tokens and Scopes" command, and click in the incorrectly colored areas? That should display information indicating whether the cursor position is in an area that is colored using a I think I've reproduced the issue. But the incorrect colors seem to be coming from |
@Colengms . Yip. It seems to be coming from the textmate extension. I actually assumed that it was coming from that as I see there are lots of related issues pertaining to that extension but I thought it might be to open an issue here as it looks as though that repo is getting stale (no commits for the last 6 months) . |
Environment
Version: 1.96.4
Commit: cd4ee3b1c348a13bafd8f9ad8060705f6d4b9cba
Date: 2025-01-16T00:16:19.038Z
Electron: 32.2.6
ElectronBuildId: 10629634
Chromium: 128.0.6613.186
Node.js: 20.18.1
V8: 12.8.374.38-electron.0
OS: Linux x64 6.12.10-arch1-1
ms-vscode.cpptools version 1.22.11
Bug Summary and Steps to Reproduce
Create a lambda with a return type as a parameter to a function call. all text after that has a single color. Blue in my case
Configuration and Logs
Other Extensions
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: