Skip to content

Commit

Permalink
Release v0.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
scottmwyant committed Feb 6, 2021
2 parents be86ddf + 7811dd8 commit d527c50
Show file tree
Hide file tree
Showing 7 changed files with 408 additions and 317 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
name: CD
on:
create:
tag:
- v\d+\.\d+\.\d+(\.[\w\d-]+)?
on: create
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VSCE_PAT: ${{secrets.VSCE_PAT}}

jobs:

deploy:
if: (github.event.ref_type == 'tag') && (startsWith(github.ref, 'refs/tags/v'))
runs-on: ubuntu-latest
steps:

- name: Checkout source code
uses: actions/checkout@v2

Expand Down
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ All notable changes will be documented in this file.

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

## [v0.1.3] - 2021-02-06

### Changed

- Add `.ssb` and `.lib` to the list of file extensions that activate the extension.

- Apply XYZ colors to ABC, IJK, and UVW addresses, remove keyword theme color from being applied to code dealing with sub-routines.

- Update inline definitions on save, rather than on document activate.

## [v0.1.2] - 2021-02-03

### Changed
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ You need to add a `gcode.definitions` key to your settings.json file (user setti

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.

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.
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.

Examples of inline definitions:

Expand Down
69 changes: 57 additions & 12 deletions assets/gcode.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,15 @@
"comment": "Keywords related to sub programs",
"patterns": [
{
"name": "keyword.subcall.gcode",
"name": "sub.call.gcode",
"match": "CALL O([A-Z0-9]{1,4}).*"
},
{
"name": "keyword.sub.gcode",
"name": "sub.name.gcode",
"match": "^O([A-Z0-9]{1,4})(?=\\s|$|\\()"
},
{
"name": "keyword.subend.gcode",
"name": "sub.end.gcode",
"match": "^RTS$"
}
]
Expand Down Expand Up @@ -170,15 +170,30 @@
"patterns": [
{
"name": "word.a.gcode",
"match": "A.*"
"match": "A.*",
"captures": {
"0": {
"name": "string.regexp"
}
}
},
{
"name": "word.b.gcode",
"match": "B.*"
"match": "B.*",
"captures": {
"0": {
"name": "comment"
}
}
},
{
"name": "word.c.gcode",
"match": "C.*"
"match": "C.*",
"captures": {
"0": {
"name": "constant.language"
}
}
},
{
"name": "word.e.gcode",
Expand All @@ -195,15 +210,30 @@
},
{
"name": "word.i.gcode",
"match": "I.*"
"match": "I.*",
"captures": {
"0": {
"name": "string.regexp"
}
}
},
{
"name": "word.j.gcode",
"match": "J.*"
"match": "J.*",
"captures": {
"0": {
"name": "comment"
}
}
},
{
"name": "word.k.gcode",
"match": "K.*"
"match": "K.*",
"captures": {
"0": {
"name": "constant.language"
}
}
},
{
"name": "word.l.gcode",
Expand Down Expand Up @@ -232,15 +262,30 @@
},
{
"name": "word.u.gcode",
"match": "U.*"
"match": "U.*",
"captures": {
"0": {
"name": "string.regexp"
}
}
},
{
"name": "word.v.gcode",
"match": "V.*"
"match": "V.*",
"captures": {
"0": {
"name": "comment"
}
}
},
{
"name": "word.w.gcode",
"match": "W.*"
"match": "W.*",
"captures": {
"0": {
"name": "constant.language"
}
}
},
{
"name": "word.x.gcode",
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "gcode",
"displayName": "G-Code",
"description": "The premier Visual Studio Code extension for G-Code",
"version": "0.1.2",
"version": "0.1.3",
"preview": true,
"author": {
"name": "Scott M. Wyant",
Expand Down Expand Up @@ -58,6 +58,7 @@
".h",
".hnc",
".knc",
".lib",
".maz",
".min",
".mpf",
Expand All @@ -82,6 +83,7 @@
".sbc",
".sbp",
".spf",
".ssb",
".t",
".tap",
".xpi"
Expand Down Expand Up @@ -145,4 +147,4 @@
"@types/vscode": "^1.46.0",
"typescript": "^3.8.0"
}
}
}
Loading

0 comments on commit d527c50

Please sign in to comment.