-
-
Notifications
You must be signed in to change notification settings - Fork 30
Closed
Labels
archivedArchived and locked issuesArchived and locked issuesbugSomething isn't workingSomething isn't working
Description
Hi,
I noticed that coordinates X10.01 lose highlight-colors after the dot, so here are the regexes I have been using:
"coords": {
"patterns": [
{
"match": "(?i)([\\,]?[XUIYVJZWKACR][ \\t]*[\\-\\+]?[0-9]++(?!\\.))",
"name": "invalid.gcode"
},
{
"match": "(?i)[XUI]?[ \\t]*[\\-\\+]?[0-9\\.]+",
"name": "axis.x.gcode"
},
{
"match": "(?i)[ZWK]?[ \\t]*[\\-\\+]?[0-9\\.]+",
"name": "axis.z.gcode"
},
{
"match": "(?i)[CH]?[ \\t]*[\\-\\+]?[0-9\\.]+",
"name": "axis.c.gcode"
}
]
},
invalid.gcode warns about coordinates without a decimal point like "X100". It works together with settings.json in the .vscode folder of the workspace.
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"name":"invalid",
"scope": "invalid.gcode",
"settings": {
"foreground": "#F00",
"fontStyle": "underline",
}
},
]
}
I hope these are useful to the project!
BelKed
Metadata
Metadata
Assignees
Labels
archivedArchived and locked issuesArchived and locked issuesbugSomething isn't workingSomething isn't working