Skip to content

Commit d527c50

Browse files
committed
Release v0.1.3
2 parents be86ddf + 7811dd8 commit d527c50

File tree

7 files changed

+408
-317
lines changed

7 files changed

+408
-317
lines changed

.github/workflows/cd.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
name: CD
2-
on:
3-
create:
4-
tag:
5-
- v\d+\.\d+\.\d+(\.[\w\d-]+)?
2+
on: create
63
env:
74
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
85
VSCE_PAT: ${{secrets.VSCE_PAT}}
96

107
jobs:
118

129
deploy:
10+
if: (github.event.ref_type == 'tag') && (startsWith(github.ref, 'refs/tags/v'))
1311
runs-on: ubuntu-latest
1412
steps:
15-
13+
1614
- name: Checkout source code
1715
uses: actions/checkout@v2
1816

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@ All notable changes will be documented in this file.
44

55
Contributors: This document uses style guidelines from [Keep A Changelog](http://keepachangelog.com/).
66

7+
## [v0.1.3] - 2021-02-06
8+
9+
### Changed
10+
11+
- Add `.ssb` and `.lib` to the list of file extensions that activate the extension.
12+
13+
- Apply XYZ colors to ABC, IJK, and UVW addresses, remove keyword theme color from being applied to code dealing with sub-routines.
14+
15+
- Update inline definitions on save, rather than on document activate.
16+
717
## [v0.1.2] - 2021-02-03
818

919
### Changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ You need to add a `gcode.definitions` key to your settings.json file (user setti
5050

5151
An inline definition is a comment in your code that matches the following format. An inline definition has a `code` and a `meaning` seperated by `:` or `=`. There may be whitespace on either side of the seperator. The text on the right side of the seperator will show up as hover text in that file. See some examples of inline definitions below.
5252

53-
Note that after you add inline definitions to a file, they won't show up in a hover until you activate the file agian. Either close that file and re-open it, or activate another file then switch back. This prevents the extension from needing to continuously scan your file for definitions.
53+
Note that after you add inline definitions to a file, they won't show up in a hover until the file is saved. This prevents the extension from needing to continuously scan your file for definitions.
5454

5555
Examples of inline definitions:
5656

assets/gcode.tmLanguage.json

Lines changed: 57 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,15 @@
6969
"comment": "Keywords related to sub programs",
7070
"patterns": [
7171
{
72-
"name": "keyword.subcall.gcode",
72+
"name": "sub.call.gcode",
7373
"match": "CALL O([A-Z0-9]{1,4}).*"
7474
},
7575
{
76-
"name": "keyword.sub.gcode",
76+
"name": "sub.name.gcode",
7777
"match": "^O([A-Z0-9]{1,4})(?=\\s|$|\\()"
7878
},
7979
{
80-
"name": "keyword.subend.gcode",
80+
"name": "sub.end.gcode",
8181
"match": "^RTS$"
8282
}
8383
]
@@ -170,15 +170,30 @@
170170
"patterns": [
171171
{
172172
"name": "word.a.gcode",
173-
"match": "A.*"
173+
"match": "A.*",
174+
"captures": {
175+
"0": {
176+
"name": "string.regexp"
177+
}
178+
}
174179
},
175180
{
176181
"name": "word.b.gcode",
177-
"match": "B.*"
182+
"match": "B.*",
183+
"captures": {
184+
"0": {
185+
"name": "comment"
186+
}
187+
}
178188
},
179189
{
180190
"name": "word.c.gcode",
181-
"match": "C.*"
191+
"match": "C.*",
192+
"captures": {
193+
"0": {
194+
"name": "constant.language"
195+
}
196+
}
182197
},
183198
{
184199
"name": "word.e.gcode",
@@ -195,15 +210,30 @@
195210
},
196211
{
197212
"name": "word.i.gcode",
198-
"match": "I.*"
213+
"match": "I.*",
214+
"captures": {
215+
"0": {
216+
"name": "string.regexp"
217+
}
218+
}
199219
},
200220
{
201221
"name": "word.j.gcode",
202-
"match": "J.*"
222+
"match": "J.*",
223+
"captures": {
224+
"0": {
225+
"name": "comment"
226+
}
227+
}
203228
},
204229
{
205230
"name": "word.k.gcode",
206-
"match": "K.*"
231+
"match": "K.*",
232+
"captures": {
233+
"0": {
234+
"name": "constant.language"
235+
}
236+
}
207237
},
208238
{
209239
"name": "word.l.gcode",
@@ -232,15 +262,30 @@
232262
},
233263
{
234264
"name": "word.u.gcode",
235-
"match": "U.*"
265+
"match": "U.*",
266+
"captures": {
267+
"0": {
268+
"name": "string.regexp"
269+
}
270+
}
236271
},
237272
{
238273
"name": "word.v.gcode",
239-
"match": "V.*"
274+
"match": "V.*",
275+
"captures": {
276+
"0": {
277+
"name": "comment"
278+
}
279+
}
240280
},
241281
{
242282
"name": "word.w.gcode",
243-
"match": "W.*"
283+
"match": "W.*",
284+
"captures": {
285+
"0": {
286+
"name": "constant.language"
287+
}
288+
}
244289
},
245290
{
246291
"name": "word.x.gcode",

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name": "gcode",
44
"displayName": "G-Code",
55
"description": "The premier Visual Studio Code extension for G-Code",
6-
"version": "0.1.2",
6+
"version": "0.1.3",
77
"preview": true,
88
"author": {
99
"name": "Scott M. Wyant",
@@ -58,6 +58,7 @@
5858
".h",
5959
".hnc",
6060
".knc",
61+
".lib",
6162
".maz",
6263
".min",
6364
".mpf",
@@ -82,6 +83,7 @@
8283
".sbc",
8384
".sbp",
8485
".spf",
86+
".ssb",
8587
".t",
8688
".tap",
8789
".xpi"
@@ -145,4 +147,4 @@
145147
"@types/vscode": "^1.46.0",
146148
"typescript": "^3.8.0"
147149
}
148-
}
150+
}

0 commit comments

Comments
 (0)