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

Add support for c++ syntax highlighting in lambdas #687

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

swoboda1337
Copy link
Contributor

@swoboda1337 swoboda1337 commented Dec 4, 2024

To simplify things only lambdas tagged with !lambda will be parsed as C++, automatically detecting the payload type in the dashboard is not feasible. IMO this is not a big deal and if someone wants the highlighting they will add the tag.

Some people use the dashboard as their editor. It would be really nice to support embedded C++ syntax highlighting. PR is simple with only 1 line changed, less than 50 new lines and the C++ language definition taken from: https://github.com/microsoft/monaco-editor/blob/main/src/basic-languages/cpp/cpp.ts

Includes library upgrade change from #654

Everything has been tested and is working:

image
image

@swoboda1337 swoboda1337 marked this pull request as draft December 4, 2024 02:32
@swoboda1337 swoboda1337 marked this pull request as ready for review December 4, 2024 14:37
@swoboda1337 swoboda1337 changed the title Add support for parsing embedded c++ in lambdas Add support for parsing c++ in lambdas Dec 4, 2024
@swoboda1337 swoboda1337 changed the title Add support for parsing c++ in lambdas Add support for c++ syntax highlighting in lambdas Dec 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant