Skip to content

Commit

Permalink
Merge pull request #54 from appliedengdesign/hotfix-syntax
Browse files Browse the repository at this point in the history
Hotfix Syntax
  • Loading branch information
mikecentola authored Nov 10, 2022
2 parents d14c4c9 + 413b562 commit 8e9686e
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions syntaxes/gcode.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,27 +83,27 @@
"gcodes": {
"patterns": [
{
"match": "[gG](1)?5[4-9](.1)?\\s?(P[0-9]{1,3})?",
"match": "(?i)[G](1)?5[4-9](.1)?\\s?(P[0-9]{1,3})?",
"name": "constant.numeric.gcode"
},
{
"match": "[gG]1[1-2][0-9]",
"match": "(?i)[G]1[1-2][0-9]",
"name": "constant.numeric.gcode"
},
{
"match": "[gG]15\\s?(H[0-9]{1,2})?",
"match": "(?i)[G]15\\s?(H[0-9]{1,2})?",
"name": "constant.numeric.gcode"
},
{
"match": "[gG][0-9]{1,3}(\\.[0-9])?",
"match": "(?i)[G][0-9]{1,3}(\\.[0-9])?",
"name": "markup.bold.gcode"
}
]
},
"mcodes": {
"patterns": [
{
"match": "[mM][0-9]{1,3}",
"match": "(?i)[M][0-9]{1,3}",
"name": "keyword.operator.quantifier.regexp.gcode"
}
]
Expand Down Expand Up @@ -131,79 +131,79 @@
"speedsfeeds": {
"patterns": [
{
"match": "([sS])\\s?(\\d+|(?=[#\\[]))",
"match": "(?i)([S])\\s?(\\d+|(?=[#\\[]))",
"name": "constant.language.gcode"
},
{
"match": "([eEfF])\\s?\\.?(\\d+(\\.\\d*)?|(?=[#\\[]))",
"match": "(?i)([EF])\\s?\\.?(\\d+(\\.\\d*)?|(?=[#\\[]))",
"name": "constant.language.gcode"
}
]
},
"prognumbers": {
"patterns": [
{
"match": "(^[nN])(\\d+)",
"match": "(?i)(^[N])(\\d+)",
"name": "constant.numeric.gcode"
},
{
"match": "(^[oO])(\\d+)?",
"match": "(?i)(^[O])(\\d+)?",
"name": "string.regexp.gcode"
},
{
"match": "([pP])\\s?(\\d?\\.?\\d+\\.?|\\.?(?=[#\\[]))",
"match": "(?i)([P])\\s?(\\d?\\.?\\d+\\.?|\\.?(?=[#\\[]))",
"name": "string.regexp.gcode"
}
]
},
"coords": {
"patterns": [
{
"match": "([xX])\\s?(\\-?\\d*\\.?\\d+\\.?|\\-?\\.?(?=[#\\[]))",
"match": "(?i)([X])\\s?(\\-?\\d*\\.?\\d+\\.?|\\-?\\.?(?=[#\\[]))",
"name": "string.gcode"
},
{
"match": "([yY])\\s?(\\-?\\d*\\.?\\d+\\.?|\\-?\\.?(?=[#\\[]))",
"match": "(?i)([Y])\\s?(\\-?\\d*\\.?\\d+\\.?|\\-?\\.?(?=[#\\[]))",
"name": "string.gcode"
},
{
"match": "([zZ])\\s?(\\-?\\d*\\.?\\d+\\.?|\\-?\\.?(?=[#\\[]))",
"match": "(?i)([Z])\\s?(\\-?\\d*\\.?\\d+\\.?|\\-?\\.?(?=[#\\[]))",
"name": "invalid.gcode"
},
{
"match": "([aAbBcC])\\s?(\\-*\\d?\\.?\\d+\\.?|\\-?\\.?(?=[#\\[]))",
"match": "(?i)([ABC])\\s?(\\-*\\d*\\.?\\d+\\.?|\\-?\\.?(?=[#\\[]))",
"name": "constant.character.escape.gcode"
}
]
},
"tools": {
"patterns": [
{
"match": "([dD])\\s?(\\d+(\\.\\d*)?|(?=[#\\[]))",
"match": "(?i)([D])\\s?(\\d+(\\.\\d*)?|(?=[#\\[]))",
"name": "constant.character.gcode"
},
{
"match": "([hH])\\s?(\\d+(\\.\\d*)?|(?=[#\\[]))",
"match": "(?i)([H])\\s?(\\d+(\\.\\d*)?|(?=[#\\[]))",
"name": "constant.character.gcode"
},
{
"match": "([tT])\\s?(\\d+(\\.\\d*)?|(?=[#\\[]))",
"match": "(?i)([T])\\s?(\\d+(\\.\\d*)?|(?=[#\\[]))",
"name": "constant.character.gcode"
}
]
},
"modifiers": {
"patterns": [
{
"match": "([iIjJkK])(\\-?\\d*\\.?\\d+\\.?|\\-?\\.?(?=[#\\[]))",
"match": "(?i)([IJK])(\\-?\\d*\\.?\\d+\\.?|\\-?\\.?(?=[#\\[]))",
"name": "constant.character.escape.gcode"
},
{
"match": "([qQrR])(\\-?\\d*\\.?\\d+\\.?|\\-?\\.?(?=[#\\[]]))",
"match": "(?i)([QR])(\\-?\\d*\\.?\\d+\\.?|\\-?\\.?(?=[#\\[]]))",
"name": "support.constant.math.gcode"
},
{
"match": "([uUwW])(\\-?\\d*\\.?\\d+\\.?|\\-?\\.?(?=[#\\[]]))",
"match": "(?i)([UW])(\\-?\\d*\\.?\\d+\\.?|\\-?\\.?(?=[#\\[]]))",
"name": "support.constant.math.gcode"
}
]
Expand Down

0 comments on commit 8e9686e

Please sign in to comment.