Open sslupsky opened 2 years ago
These printer macros are going to be tough to fix the highlighting on because of the nature of them being non-standard G-Code. with functions and keywords more like programming.
It is akin to something that hasn't been run through a post-processor yet. I'm not 100% sure how to deal with this, but once we dial in the machine choices and the language server, it might make doing this easier.
This issue has been automatically marked as stale because it has not had recent activity.
I just installed v0.7.7 and I'm seeing syntax highlighting issues in a standard gcode file when there is a string of text for a command like M117 or M0:
The gcode can be found here, though it seems like the Linguist grammar used by GitHub's syntax highlighting is failing in some of the same places: https://gist.github.com/rbuckton/93060c4c628235ac5382ca477a072fa3
This issue has been automatically marked as stale because it has not had recent activity.
Describe the bug Here is a screenshot of a few more of those highlighting anomalies reported in Issue #40.
To Reproduce Download the surfacing macro from duet3d forum here: https://forum.duet3d.com/topic/26762/surfacing-macro?loggedin=true
Environment / Version: macOS 12.5.1 VSCode 1.69.2 Extension 0.7.4