Skip to content

Commit 8126e99

Browse files
authored
Merge pull request #47 from fdncred/060_updates
updated to work with 0.60.0 syntax
2 parents f3da843 + 10aae0f commit 8126e99

File tree

9 files changed

+1145
-352
lines changed

9 files changed

+1145
-352
lines changed

.vscode/launch.json

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,16 @@
33
// Hover to view descriptions of existing attributes.
44
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
55
{
6-
"version": "0.2.0",
7-
"configurations": [
8-
{
9-
"name": "Run Extension",
10-
"type": "extensionHost",
11-
"request": "launch",
12-
"runtimeExecutable": "${execPath}",
13-
"args": [
14-
"--extensionDevelopmentPath=${workspaceFolder}"
15-
],
16-
"outFiles": [
17-
"${workspaceFolder}/out/**/*.js"
18-
],
19-
"preLaunchTask": "npm: watch"
20-
}
21-
]
22-
}
6+
"version": "0.2.0",
7+
"configurations": [
8+
{
9+
"name": "Run Extension",
10+
"type": "extensionHost",
11+
"request": "launch",
12+
"runtimeExecutable": "${execPath}",
13+
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
14+
"outFiles": ["${workspaceFolder}/out/**/*.js"]
15+
// "preLaunchTask": "npm: watch"
16+
}
17+
]
18+
}

.vscode/tasks.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
// See https://go.microsoft.com/fwlink/?LinkId=733558
22
// for the documentation about the tasks.json format
3-
{
4-
"version": "2.0.0",
5-
"tasks": [
6-
{
7-
"type": "npm",
8-
"script": "watch",
9-
"problemMatcher": "$tsc-watch",
10-
"isBackground": true,
11-
"presentation": {
12-
"reveal": "never"
13-
},
14-
"group": {
15-
"kind": "build",
16-
"isDefault": true
17-
}
18-
}
19-
]
20-
}
3+
// {
4+
// "version": "2.0.0",
5+
// "tasks": [
6+
// {
7+
// "type": "npm",
8+
// "script": "watch",
9+
// "problemMatcher": "$tsc-watch",
10+
// "isBackground": true,
11+
// "presentation": {
12+
// "reveal": "never"
13+
// },
14+
// "group": {
15+
// "kind": "build",
16+
// "isDefault": true
17+
// }
18+
// }
19+
// ]
20+
// }

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,8 @@ All notable changes to the "vscode-nushell-lang" extension will be documented in
7676
- added `in` to go with `for`
7777
- 0.4.2
7878
- added contribute custom terminal feature it is easier to use nushell as a terminal in vscode
79+
- 0.5.0
80+
- updated language to support 0.60.0 new keywords
81+
- fixed some bugs with highlighting
82+
- separated keywords for easier regex debugging
83+
- updated dependency versions

dist/extension.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/extension.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

language-configuration.json

Lines changed: 42 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,44 @@
11
{
2-
"comments": {
3-
// symbol used for single line comment. Remove this entry if your language does not support line comments
4-
"lineComment": "#",
5-
// symbols used for start and end a block comment. Remove this entry if your language does not support block comments
6-
"blockComment": [ "#", "#" ]
7-
},
8-
// symbols used as brackets
9-
"brackets": [
10-
["{", "}"],
11-
["[", "]"],
12-
["(", ")"]
13-
],
14-
// symbols that are auto closed when typing
15-
"autoClosingPairs": [
16-
["{", "}"],
17-
["[", "]"],
18-
["(", ")"],
19-
["\"", "\""],
20-
["'", "'"]
21-
],
22-
// symbols that can be used to surround a selection
23-
"surroundingPairs": [
24-
["{", "}"],
25-
["[", "]"],
26-
["(", ")"],
27-
["\"", "\""],
28-
["'", "'"]
29-
],
30-
"folding": {
31-
"markers": {
32-
"start": "^def\\b",
33-
"end": "^\\}"
34-
}
2+
"comments": {
3+
// symbol used for single line comment. Remove this entry if your language does not support line comments
4+
"lineComment": "#",
5+
// symbols used for start and end a block comment. Remove this entry if your language does not support block comments
6+
"blockComment": ["#", "#"]
7+
},
8+
// symbols used as brackets
9+
"brackets": [
10+
["{", "}"],
11+
["[", "]"],
12+
["(", ")"]
13+
],
14+
// symbols that are auto closed when typing
15+
"autoClosingPairs": [
16+
{ "open": "{", "close": "}" },
17+
{ "open": "[", "close": "]" },
18+
{ "open": "(", "close": ")" },
19+
{ "open": "'", "close": "'", "notIn": ["string", "comment"] },
20+
{ "open": "\"", "close": "\"", "notIn": ["string"] },
21+
{ "open": "`", "close": "`", "notIn": ["string", "comment"] },
22+
{ "open": "/**", "close": " */", "notIn": ["string"] }
23+
],
24+
// symbols that can be used to surround a selection
25+
"surroundingPairs": [
26+
["{", "}"],
27+
["[", "]"],
28+
["(", ")"],
29+
["'", "'"],
30+
["\"", "\""],
31+
["`", "`"]
32+
],
33+
"folding": {
34+
"markers": {
35+
"start": "^def\\b",
36+
"end": "^\\}"
3537
}
36-
}
38+
},
39+
"wordPattern": "(-?\\d*\\.\\d\\w*)|([^\\`\\~\\!\\@\\#\\%\\^\\&\\*\\(\\)\\-\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:\\'\\\"\\,\\.\\<\\>\\/\\?\\s]+)",
40+
"indentationRules": {
41+
"increaseIndentPattern": "^((?!.*?\\/\\*).*\\*/)?\\s*[\\}\\]].*$",
42+
"decreaseIndentPattern": "^((?!\\/\\/).)*(\\{[^}\"'`]*|\\([^)\"'`]*|\\[[^\\]\"'`]*)$"
43+
}
44+
}

0 commit comments

Comments
 (0)