Skip to content

Commit

Permalink
add NOT and adjust string recognizer
Browse files Browse the repository at this point in the history
  • Loading branch information
ironsheep committed Nov 25, 2020
1 parent 6f3e6ae commit dbfbed5
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 30 deletions.
7 changes: 7 additions & 0 deletions spin2/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ Possible next additions:
- Add new-file templates as Snippets
- Add additional Snippets as the community identifies them

## [0.2.1] 2020-11-25

### Minor repairs

- Spin2: Added "not" operator
- Spin2: Removed escape sequence recognizer so that strings would highlight correctly

## [0.2.0] 2020-11-07

### Spin2 and Pasm2 are now complete
Expand Down
2 changes: 1 addition & 1 deletion spin2/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
{
"version": "0.2.0",
"version": "0.2.1",
"configurations": [
{
"name": "Run Extension",
Expand Down
33 changes: 17 additions & 16 deletions spin2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
"displayName": "Spin2",
"description": "Spin2/Pasm2 Syntax Hightlighting and Code Outline support",
"icon": "images/Propeller.ico",
"version": "0.2.0",
"version": "0.2.1",
"publisher": "IronSheep",
"repository": {
"type": "git",
"url": "https://github.com/ironsheep/P2-vscode-extensions"
},
"bugs": {
"url": "https://github.com/ironsheep/P2-vscode-extensions/issues"
},
"bugs": {
"url": "https://github.com/ironsheep/P2-vscode-extensions/issues"
},
"author": "IronSheep",
"galleryBanner": {
"color": "#003060",
Expand All @@ -22,6 +22,7 @@
"spin",
"spin2",
"propeller",
"propeller 2",
"propeller ii",
"parallax"
],
Expand All @@ -37,18 +38,18 @@
"Programming Languages"
],
"contributes": {
"themes": [
{
"label": "Spin2 Ironsheep",
"uiTheme": "vs-dark",
"path": "./themes/isp-spin-theme.json"
},
{
"label": "Spin2 Cluso99",
"uiTheme": "hc-black",
"path": "./themes/spin-theme.json"
}
],
"themes": [
{
"label": "Spin2 Ironsheep",
"uiTheme": "vs-dark",
"path": "./themes/isp-spin-theme.json"
},
{
"label": "Spin2 Cluso99",
"uiTheme": "hc-black",
"path": "./themes/spin-theme.json"
}
],
"grammars": [
{
"language": "spin2",
Expand Down
6 changes: 1 addition & 5 deletions spin2/syntaxes/spin2.tmLanguage.YAML-tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ repository:
include: '#cog_register_names'
-
name: keyword.control.flow.spin2
match: '(?i)\b(IF|ELSEIF|ELSEIFNOT|ELSE|IFNOT|CASE|CASE_FAST|OTHER|REPEAT|FROM|TO|STEP|UNTIL|WHILE|NEXT|QUIT|RETURN|ABORT)\b'
match: '(?i)\b(IF|ELSEIF|ELSEIFNOT|ELSE|IFNOT|NOT|CASE|CASE_FAST|OTHER|REPEAT|FROM|TO|STEP|UNTIL|WHILE|NEXT|QUIT|RETURN|ABORT)\b'
-
name: keyword.spin.methods.hub.spin2
match: '(?i)\b(COG(CHK|ID|INIT|SPIN|STOP)|(HUB|CLK)SET|LOCK(NEW|RET|TRY|REL|CHK)|(COG|POLL|WAIT)ATN)\b'
Expand Down Expand Up @@ -540,10 +540,6 @@ repository:
name: string.quoted.double.spin2
begin: '"'
end: '"'
patterns:
-
name: constant.character.escape.spin2
match: \\.
variable_block:
name: meta.block.variable.spin2
begin: '(?i)^(VAR)\b'
Expand Down
10 changes: 2 additions & 8 deletions spin2/syntaxes/spin2.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@
},
{
"name": "keyword.control.flow.spin2",
"match": "(?i)\\b(IF|ELSEIF|ELSEIFNOT|ELSE|IFNOT|CASE|CASE_FAST|OTHER|REPEAT|FROM|TO|STEP|UNTIL|WHILE|NEXT|QUIT|RETURN|ABORT)\\b"
"match": "(?i)\\b(IF|ELSEIF|ELSEIFNOT|ELSE|IFNOT|NOT|CASE|CASE_FAST|OTHER|REPEAT|FROM|TO|STEP|UNTIL|WHILE|NEXT|QUIT|RETURN|ABORT)\\b"
},
{
"name": "keyword.spin.methods.hub.spin2",
Expand Down Expand Up @@ -807,13 +807,7 @@
"string": {
"name": "string.quoted.double.spin2",
"begin": "\"",
"end": "\"",
"patterns": [
{
"name": "constant.character.escape.spin2",
"match": "\\\\."
}
]
"end": "\""
},
"variable_block": {
"name": "meta.block.variable.spin2",
Expand Down

0 comments on commit dbfbed5

Please sign in to comment.