Skip to content

Commit

Permalink
Merge branch 'release-0.7.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecentola committed Jul 1, 2022
2 parents 5b72bf4 + 7e6507d commit 04c7895
Show file tree
Hide file tree
Showing 9 changed files with 332 additions and 432 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2019,
"ecmaVersion": 2021,
"sourceType": "module",
"ecmaFeatures": {
"impliedStrict": true
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.eslintcache
.vscode-test/**
*.vsix
dist
images/*.ai
Expand Down
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@

All changes to G-Code Language Extension will be documented here.

## v0.7.2 [#](https://github.com/appliedengdesign/vscode-gcode-syntax/releases/tag/v0.7.2)

### Fixes

- Fixed highlighting syntax for `T` inside of other words [#40](https://github.com/appliedengdesign/vscode-gcode-syntax/issues/40)

### Other

- Updated dependencies [#38](https://github.com/appliedengdesign/vscode-gcode-syntax/pull/38)
- Refactored some Regex to be more concise
- Updated VSCode engine to `^1.68.0`
- Update Typescript build to ES2021
- Updated README

## v0.7.1 [#](https://github.com/appliedengdesign/vscode-gcode-syntax/releases/tag/v0.7.1)

### New Features
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ This extension adds language syntax for CNC G-Code, code snippets, and colorizat
| .gcode | .gp | .hnc | .knc | .lib | .m | .min | .mpf |
| .mpr | .msb | .nc | .ncc | .ncd | .ncf | .ncg | .nci |
| .ncp | .ngc | .out | .pim | .pit | .plt | .ply | .prg |
| .pu1 | .rol | .sbp | .spf | .ssb | .sub | .tap | .xpi |
| .pu1 | .rol | .S | .sbp | .spf | .ssb | .sub | .tap |
| .xpi | | | | | | | |
```

If you would like another file extension supported by this extension, please [open an issue](https://github.com/appliedemgdesign/vscode-gcode-syntax/issues).
Expand Down Expand Up @@ -140,7 +141,7 @@ Visit our [projects page](https://github.com/appliedengdesign/vscode-gcode-synta

## Changelog

Latest Version: v0.7.1
Latest Version: v0.7.2

Please refer to our [CHANGELOG](https://github.com/appliedengdesign/vscode-gcode-syntax/blob/master/CHANGELOG.md) doc.

Expand Down
649 changes: 255 additions & 394 deletions package-lock.json

Large diffs are not rendered by default.

28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"displayName": "G-Code Syntax",
"shortName": "G-Code",
"description": "Turn VSCode into a fully capable G-Code editor, including language support & more.",
"version": "0.7.1",
"version": "0.7.2",
"license": "MIT",
"publisher": "appliedengdesign",
"author": {
Expand All @@ -12,7 +12,7 @@
},
"copyright": "Copyright (c) 2022 Applied Eng. & Design / Mike Centola",
"engines": {
"vscode": "^1.67.0"
"vscode": "^1.68.0"
},
"categories": [
"Programming Languages",
Expand Down Expand Up @@ -467,27 +467,27 @@
"@types/chai": "^4.3.1",
"@types/glob": "^7.2.0",
"@types/mocha": "^9.1.1",
"@types/node": "^17.0.34",
"@types/vscode": "^1.67.0",
"@typescript-eslint/eslint-plugin": "^5.24.0",
"@typescript-eslint/parser": "^5.24.0",
"@types/node": "^18.0.0",
"@types/vscode": "^1.68.1",
"@typescript-eslint/eslint-plugin": "^5.30.0",
"@typescript-eslint/parser": "^5.30.0",
"chai": "^4.3.6",
"eslint": "^8.15.0",
"eslint": "^8.18.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-prettier": "^4.2.1",
"fork-ts-checker-webpack-plugin": "^7.2.11",
"glob": "^8.0.3",
"mocha": "^10.0.0",
"prettier": "^2.6.2",
"prettier": "^2.7.1",
"shx": "^0.3.4",
"ts-loader": "^9.3.0",
"ts-node": "^10.7.0",
"typescript": "^4.6.4",
"ts-loader": "^9.3.1",
"ts-node": "^10.8.1",
"typescript": "^4.7.4",
"vscode-test": "^1.6.1",
"webpack": "^5.72.1",
"webpack": "^5.73.0",
"webpack-bundle-analyzer": "^4.5.0",
"webpack-cli": "^4.9.2"
"webpack-cli": "^4.10.0"
},
"dependencies": {
"@appliedengdesign/gcode-reference": "^0.0.3"
Expand Down
52 changes: 37 additions & 15 deletions syntaxes/gcode.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@
"include": "#bracket-expression"
},
{
"include": "#keywords"
"include": "#control"
},
{
"include": "#gcodes"
},
{
"include": "#mcodes"
},
{
"include": "#operators"
Expand Down Expand Up @@ -54,12 +60,28 @@
}
]
},
"keywords": {
"control": {
"patterns": [
{
"match": "(GOTO(?>\\d+))|(IF)|(EQ)|(NE)|(LT)|(GT)|(LE)|(GE)|(DO ?(?>\\d+))|(WHILE)|(WH)|(END ?(?>\\d+))|(AND)|(OR)|(XOR)|(THEN)|(ELSE)|(ENDIF)",
"match": "(GOTO\\s?\\d*)",
"name": "keyword.control.gcode"
},
{
"match": "(EQ|NE|LT|GT|LE|GE|AND|OR|XOR)",
"name": "keyword.control.gcode"
},
{
"match": "(DO\\s?\\d*|WHILE|WH|END|IF|THEN|ELSE|ENDIF)",
"name": "keyword.control.gcode"
},
{
"match": "([\\%])",
"name": "string.gcode"
}
]
},
"gcodes": {
"patterns": [
{
"match": "[gG](1)?5[4-9](.1)?\\s?(P[0-9]{1,3})?",
"name": "constant.numeric.gcode"
Expand All @@ -75,29 +97,29 @@
{
"match": "[gG][0-9]{1,3}(\\.[0-9])?",
"name": "markup.bold.gcode"
},
}
]
},
"mcodes": {
"patterns": [
{
"match": "[mM][0-9]{1,3}",
"name": "keyword.operator.quantifier.regexp.gcode"
},
{
"match": "([\\%])",
"name": "string.gcode"
}
]
},
"operators": {
"patterns": [
{
"match": "(SIN)|(COS)|(TAN)|(ASIN)|(ACOS)|(ATAN)|(FIX)|(FUP)|(LN)|(ROUND)|(SQRT)",
"match": "(SIN|COS|TAN|ASIN|ACOS|ATAN|FIX|FUP|LN|ROUND|SQRT)",
"name": "support.constant.math.gcode"
},
{
"match": "(FIX)|(FUP)|(ROUND)|(ABS)|(MOD)",
"match": "(FIX|FUP|ROUND|ABS|MOD)",
"name": "support.constant.math.gcode"
},
{
"match": "(\\+)|(\\*)|(\\/)|(\\*\\*)",
"match": "(\\+|\\*|\\/|\\*\\*)",
"name": "support.constant.math.gcode"
},
{
Expand Down Expand Up @@ -157,15 +179,15 @@
"tools": {
"patterns": [
{
"match": "([dD])\\s?(\\d*\\.?\\d*|(?=[#\\[]))",
"match": "([dD])\\s?(\\d+(\\.\\d*)?|(?=[#\\[]))",
"name": "constant.character.gcode"
},
{
"match": "([hH])\\s?(\\d*\\.?\\d*|(?=[#\\[]))",
"match": "([hH])\\s?(\\d+(\\.\\d*)?|(?=[#\\[]))",
"name": "constant.character.gcode"
},
{
"match": "([tT])\\s?(\\d*\\.?\\d*|(?=[#\\[]))",
"match": "([tT])\\s?(\\d+(\\.\\d*)?|(?=[#\\[]))",
"name": "constant.character.gcode"
}
]
Expand Down Expand Up @@ -219,4 +241,4 @@
]
}
}
}
}
9 changes: 5 additions & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"compilerOptions": {
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"incremental": true,
"isolatedModules": true,
"lib": [
"es2020"
"ES2021"
],
"module": "esnext",
"module": "CommonJS",
"moduleResolution": "node",
"noFallthroughCasesInSwitch": true,
"noImplicitReturns": true,
Expand All @@ -19,7 +20,7 @@
"skipLibCheck": true,
"sourceMap": true,
"strict": true,
"target": "es2019",
"target": "ES2021",
"useDefineForClassFields": true
},
"include": [
Expand All @@ -28,6 +29,6 @@
],
"exclude": [
"node_modules",
"samplenc",
"samplenc"
]
}
4 changes: 2 additions & 2 deletions tsconfig.tests.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"extends": "./tsconfig.json",
"compilerOptions": {
"lib": [
"es2020"
"ES2021"
],
"module": "commonjs",
"module": "CommonJS",
"outDir": "out",
"tsBuildInfoFile": "tsconfig.tests.tsbuildinfo"
}
Expand Down

0 comments on commit 04c7895

Please sign in to comment.