Skip to content

Commit

Permalink
update mode tool and reference source
Browse files Browse the repository at this point in the history
  • Loading branch information
ironsheep committed Oct 28, 2023
1 parent 441448e commit fa3ff63
Show file tree
Hide file tree
Showing 2 changed files with 309 additions and 55 deletions.
285 changes: 256 additions & 29 deletions spin2/scripts/TEST-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,17 @@
},
"publisher": "IronSheepProductionsLLC",
"categories": [],
"keywords": ["spin", "spin2", "pasm", "pasm2", "propeller", "propeller 2", "propeller v2", "parallax", "parallax.com"],
"keywords": [
"spin",
"spin2",
"pasm",
"pasm2",
"propeller",
"propeller 2",
"propeller v2",
"parallax",
"parallax.com"
],
"engines": {
"vscode": "^1.75.0"
},
Expand Down Expand Up @@ -82,7 +92,11 @@
"spinExtension.trace.server": {
"scope": "window",
"type": "string",
"enum": ["off", "messages", "verbose"],
"enum": [
"off",
"messages",
"verbose"
],
"default": "off",
"description": "Traces the communication between VSCode client and the spin2 language server."
},
Expand Down Expand Up @@ -116,7 +130,11 @@
"spinExtension.ElasticTabstops.choice": {
"type": "string",
"default": "PropellerTool",
"enum": ["PropellerTool", "IronSheep", "User1"],
"enum": [
"PropellerTool",
"IronSheep",
"User1"
],
"description": "Select the set of Tabstops you wish to use."
},
"spinExtension.ElasticTabstops.blocks.PropellerTool": {
Expand All @@ -130,22 +148,78 @@
},
"default": {
"con": {
"tabStops": [2, 8, 16, 18, 32, 56, 78, 80]
"tabStops": [
2,
8,
16,
18,
32,
56,
78,
80
]
},
"var": {
"tabStops": [2, 8, 22, 32, 56, 80]
"tabStops": [
2,
8,
22,
32,
56,
80
]
},
"obj": {
"tabStops": [2, 8, 16, 18, 32, 56, 80]
"tabStops": [
2,
8,
16,
18,
32,
56,
80
]
},
"pub": {
"tabStops": [2, 4, 6, 8, 10, 12, 14, 16, 32, 56, 80]
"tabStops": [
2,
4,
6,
8,
10,
12,
14,
16,
32,
56,
80
]
},
"pri": {
"tabStops": [2, 4, 6, 8, 10, 12, 14, 16, 32, 56, 80]
"tabStops": [
2,
4,
6,
8,
10,
12,
14,
16,
32,
56,
80
]
},
"dat": {
"tabStops": [8, 14, 24, 32, 48, 56, 80]
"tabStops": [
8,
14,
24,
32,
48,
56,
80
]
}
}
},
Expand All @@ -160,22 +234,87 @@
},
"default": {
"con": {
"tabStops": [4, 8, 16, 20, 32, 44, 56, 68, 80]
"tabStops": [
4,
8,
16,
20,
32,
44,
56,
68,
80
]
},
"var": {
"tabStops": [4, 12, 24, 28, 32, 44, 56, 68, 80]
"tabStops": [
4,
12,
24,
28,
32,
44,
56,
68,
80
]
},
"obj": {
"tabStops": [4, 8, 16, 20, 32, 44, 56, 68, 80]
"tabStops": [
4,
8,
16,
20,
32,
44,
56,
68,
80
]
},
"pub": {
"tabStops": [4, 8, 12, 16, 20, 24, 28, 32, 56, 80]
"tabStops": [
4,
8,
12,
16,
20,
24,
28,
32,
56,
80
]
},
"pri": {
"tabStops": [4, 8, 12, 16, 20, 24, 28, 32, 56, 80]
"tabStops": [
4,
8,
12,
16,
20,
24,
28,
32,
56,
80
]
},
"dat": {
"tabStops": [4, 16, 20, 24, 28, 48, 52, 56, 60, 64, 68, 80]
"tabStops": [
4,
16,
20,
24,
28,
48,
52,
56,
60,
64,
68,
80
]
}
}
},
Expand All @@ -190,22 +329,80 @@
},
"default": {
"con": {
"tabStops": [2, 8, 16, 18, 32, 56, 76, 77, 78, 80]
"tabStops": [
2,
8,
16,
18,
32,
56,
76,
77,
78,
80
]
},
"var": {
"tabStops": [2, 8, 22, 32, 56, 80]
"tabStops": [
2,
8,
22,
32,
56,
80
]
},
"obj": {
"tabStops": [2, 8, 16, 18, 32, 56, 80]
"tabStops": [
2,
8,
16,
18,
32,
56,
80
]
},
"pub": {
"tabStops": [2, 4, 6, 8, 10, 12, 14, 16, 32, 56, 80]
"tabStops": [
2,
4,
6,
8,
10,
12,
14,
16,
32,
56,
80
]
},
"pri": {
"tabStops": [2, 4, 6, 8, 10, 12, 14, 16, 32, 56, 80]
"tabStops": [
2,
4,
6,
8,
10,
12,
14,
16,
32,
56,
80
]
},
"dat": {
"tabStops": [8, 14, 24, 32, 48, 56, 80]
"tabStops": [
8,
14,
24,
32,
48,
56,
80
]
}
}
}
Expand All @@ -232,13 +429,27 @@
"spinExtension.InsertMode.secondaryCursorStyle": {
"type": "string",
"default": "block",
"enum": ["line", "line-thin", "block", "block-outline", "underline", "underline-thin"],
"enum": [
"line",
"line-thin",
"block",
"block-outline",
"underline",
"underline-thin"
],
"description": "Select the \"Overtype\" Mode cursor style."
},
"spinExtension.InsertMode.ternaryCursorStyle": {
"type": "string",
"default": "underline",
"enum": ["line", "line-thin", "block", "block-outline", "underline", "underline-thin"],
"enum": [
"line",
"line-thin",
"block",
"block-outline",
"underline",
"underline-thin"
],
"description": "Select the \"Align\" Mode cursor style."
},
"spinExtension.InsertMode.labelInsertMode": {
Expand Down Expand Up @@ -359,14 +570,26 @@
"languages": [
{
"id": "spin2",
"aliases": ["spin2", "Spin2", "SPIN2"],
"extensions": [".spin2"],
"aliases": [
"spin2",
"Spin2",
"SPIN2"
],
"extensions": [
".spin2"
],
"configuration": "./spin2.language-configuration.json"
},
{
"id": "spin",
"aliases": ["spin", "Spin", "SPIN"],
"extensions": [".spin"],
"aliases": [
"spin",
"Spin",
"SPIN"
],
"extensions": [
".spin"
],
"configuration": "./spin1.language-configuration.json"
}
],
Expand Down Expand Up @@ -432,8 +655,12 @@
"semanticTokenScopes": [
{
"scopes": {
"returnValue": ["meta.returntype.spin"],
"storageType": ["storage.type.pasm.spin2"]
"returnValue": [
"meta.returntype.spin"
],
"storageType": [
"storage.type.pasm.spin2"
]
}
}
],
Expand Down
Loading

0 comments on commit fa3ff63

Please sign in to comment.