-
Notifications
You must be signed in to change notification settings - Fork 17
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
Rust syntax highlighting #10
Comments
If GDB treats Rust code differently than C/C++ code, for example, by using a different expression syntax, things start to become tricky. Variable displays may not work anymore. |
Quickly looking at the code at how HighlightCpp is implemented I don't see how it would make a difference how gdb treats rust code. Am I missing something? |
Class HighlightCpp is only for syntax highlighting in the source code window. It has nothing to do with how GDB treats Rust code. To handle Rust code, two things are needed:
|
For the record, I was only talking about syntax highlighting in the source window. That said, I wanted to point out the wrapper script for gdb that's distributed with rust, maybe it sheds some light on something (I don't really understand how rust works in gdb, honestly). |
Speaking of syntax highlighting, what about using KTextEditor? It can use the KF5 syntax highlighting framework out of the box |
I would not have an objection to replace the current code display by |
That sounds interesting.
Sure, otherwise it wouldn't be an improvement. I am currently writing a toy project with But I will keep this change in mind. |
One can debug rust programs with gdb, and by extension kdbg. It would be nice so have a bit of syntax highlighting for it, though. I'd not put in too much, just a color for the keywords (maybe a different one for the control flow keywords), one for strings, and if you want to get fancy, one for macros. Thanks for thinking about it, and thanks for kdbg 👍
The text was updated successfully, but these errors were encountered: