Skip to content
Merged
Show file tree
Hide file tree
Changes from 24 commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
b650b22
initial next-gen shellscript support
fidgetingbits Jun 17, 2024
9200cec
Merge remote-tracking branch 'upstream/main' into bash-lang
fidgetingbits Aug 5, 2024
42f1f4b
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] Aug 5, 2024
64f0a30
Merge with main
AndreasArvidsson Sep 6, 2026
bfcfe5b
Remove legacy scope recorded test fixtures
AndreasArvidsson Sep 9, 2026
89f3eec
Merge branch 'main' into pr/fidgetingbits/2058
AndreasArvidsson Sep 9, 2026
8273e55
Added scope support definitions
AndreasArvidsson Sep 9, 2026
98e116b
update
AndreasArvidsson Sep 9, 2026
ec07b6b
string
AndreasArvidsson Sep 9, 2026
f8c7aff
update
AndreasArvidsson Sep 9, 2026
049c925
for
AndreasArvidsson Sep 9, 2026
cb40fcd
Funk
AndreasArvidsson Sep 9, 2026
8152fe4
List and map
AndreasArvidsson Sep 9, 2026
cb6d634
key value pairs
AndreasArvidsson Sep 9, 2026
737355d
Move playground file
AndreasArvidsson Sep 9, 2026
3868978
clean up
AndreasArvidsson Sep 9, 2026
2791cb5
argument list
AndreasArvidsson Sep 9, 2026
76d83a6
arguments
AndreasArvidsson Sep 9, 2026
c952ab5
branch
AndreasArvidsson Sep 9, 2026
89d29f6
interior
AndreasArvidsson Sep 9, 2026
ce21798
if interior
AndreasArvidsson Sep 9, 2026
9987096
iteration
AndreasArvidsson Sep 9, 2026
3cd12b5
Fix lint problems
AndreasArvidsson Sep 9, 2026
eedaf0a
more lint issues
AndreasArvidsson Sep 9, 2026
b53084d
Updated changelog
AndreasArvidsson Sep 9, 2026
73fda37
Clean up
AndreasArvidsson Sep 9, 2026
07ec316
Bug fixes
AndreasArvidsson Sep 9, 2026
e1de69c
More fixes
AndreasArvidsson Sep 9, 2026
dd0947c
lint fix
AndreasArvidsson Sep 9, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4868,6 +4868,186 @@
}
]
},
{
"name": "scopes/shellscript/interior/interior.for",
"languageId": "shellscript",
"facet": "interior.for",
"code": "for ((foo = 0; foo < 2; foo++)); do :; done",
"scopes": [
{
"targets": [
{
"content": "0:36-0:38",
"removal": "0:35-0:39"
}
],
"domain": "0:35-0:39"
}
]
},
{
"name": "scopes/shellscript/interior/interior.foreach",
"languageId": "shellscript",
"facet": "interior.foreach",
"code": "for v in values; do :; done",
"scopes": [
{
"targets": [
{
"content": "0:20-0:22",
"removal": "0:19-0:23"
}
],
"domain": "0:19-0:23"
}
]
},
{
"name": "scopes/shellscript/interior/interior.function",
"languageId": "shellscript",
"facet": "interior.function",
"code": "foo() { }",
"scopes": [
{
"targets": [
{
"content": "0:7-0:8",
"removal": "0:7-0:8"
}
],
"domain": "0:7-0:8"
}
]
},
{
"name": "scopes/shellscript/interior/interior.function2",
"languageId": "shellscript",
"facet": "interior.function",
"code": "function foo { }",
"scopes": [
{
"targets": [
{
"content": "0:14-0:15",
"removal": "0:14-0:15"
}
],
"domain": "0:14-0:15"
}
]
},
{
"name": "scopes/shellscript/interior/interior.if",
"languageId": "shellscript",
"facet": "interior.if",
"code": "if true; then\n :\nelif false; then\n :\nelse\n :\nfi",
"scopes": [
{
"targets": [
{
"content": "1:2-1:3",
"removal": "0:13-2:0"
}
],
"domain": "0:13-2:0"
},
{
"targets": [
{
"content": "3:2-3:3",
"removal": "2:16-4:0"
}
],
"domain": "2:16-4:0"
},
{
"targets": [
{
"content": "5:2-5:3",
"removal": "4:4-6:0"
}
],
"domain": "4:4-6:0"
}
]
},
{
"name": "scopes/shellscript/interior/interior.switch",
"languageId": "shellscript",
"facet": "interior.switch",
"code": "case $foo in esac",
"scopes": [
{
"targets": [
{
"content": "0:12-0:13",
"removal": "0:12-0:13"
}
],
"domain": "0:12-0:13"
}
]
},
{
"name": "scopes/shellscript/interior/interior.switchCase",
"languageId": "shellscript",
"facet": "interior.switchCase",
"code": "case $foo in\n 0) : ;;\nesac",
"scopes": [
{
"targets": [
{
"content": "1:2-1:9",
"removal": "0:12-2:0"
}
],
"domain": "0:12-2:0"
},
{
"targets": [
{
"content": "1:5-1:6",
"removal": "1:4-1:7"
}
],
"domain": "1:4-1:7"
}
]
},
{
"name": "scopes/shellscript/interior/interior.while",
"languageId": "shellscript",
"facet": "interior.while",
"code": "while foo; do :; done",
"scopes": [
{
"targets": [
{
"content": "0:14-0:16",
"removal": "0:13-0:17"
}
],
"domain": "0:13-0:17"
}
]
},
{
"name": "scopes/shellscript/interior/interior.while2",
"languageId": "shellscript",
"facet": "interior.while",
"code": "until foo; do :; done",
"scopes": [
{
"targets": [
{
"content": "0:14-0:16",
"removal": "0:13-0:17"
}
],
"domain": "0:13-0:17"
}
]
},
{
"name": "scopes/talon/interior.command",
"languageId": "talon",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,40 @@
}
]
},
{
"name": "scopes/shellscript/string.multiLine",
"languageId": "shellscript",
"facet": "string.multiLine",
"code": "\"Hello\nworld\"",
"scopes": [
{
"targets": [
{
"content": "0:0-1:6",
"removal": "0:0-1:6"
}
],
"domain": "0:0-1:6"
}
]
},
{
"name": "scopes/shellscript/string.singleLine",
"languageId": "shellscript",
"facet": "string.singleLine",
"code": "\"Hello world\"",
"scopes": [
{
"targets": [
{
"content": "0:0-0:13",
"removal": "0:0-0:13"
}
],
"domain": "0:0-0:13"
}
]
},
{
"name": "scopes/talon/string.singleLine",
"languageId": "talon",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1360,6 +1360,57 @@
}
]
},
{
"name": "scopes/shellscript/textFragment.comment.line",
"languageId": "shellscript",
"facet": "textFragment.comment.line",
"code": "# Hello world",
"scopes": [
{
"targets": [
{
"content": "0:0-0:13",
"removal": "0:0-0:13"
}
],
"domain": "0:0-0:13"
}
]
},
{
"name": "scopes/shellscript/textFragment.string.multiLine",
"languageId": "shellscript",
"facet": "textFragment.string.multiLine",
"code": "\"Hello\nworld\"",
"scopes": [
{
"targets": [
{
"content": "0:1-1:5",
"removal": "0:1-1:5"
}
],
"domain": "0:1-1:5"
}
]
},
{
"name": "scopes/shellscript/textFragment.string.singleLine",
"languageId": "shellscript",
"facet": "textFragment.string.singleLine",
"code": "\"Hello world\"",
"scopes": [
{
"targets": [
{
"content": "0:1-0:12",
"removal": "0:1-0:12"
}
],
"domain": "0:1-0:12"
}
]
},
{
"name": "scopes/talon/textFragment.comment.line",
"languageId": "talon",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,10 @@ The following are internal scopes. They are not intended for user interaction or

<ScopeVisualizer fixtureName="scopes/php/interior/interior.for" />

##### Shell Script

<ScopeVisualizer fixtureName="scopes/shellscript/interior/interior.for" />

### Interior: Foreach

<i>The body of a for-each loop</i>
Expand Down Expand Up @@ -357,6 +361,10 @@ The following are internal scopes. They are not intended for user interaction or

<ScopeVisualizer fixtureName="scopes/scala/interior/interior.foreach" />

##### Shell Script

<ScopeVisualizer fixtureName="scopes/shellscript/interior/interior.foreach" />

##### Talon

<ScopeVisualizer fixtureName="scopes/talon/interior.foreach" />
Expand Down Expand Up @@ -429,6 +437,12 @@ The following are internal scopes. They are not intended for user interaction or

<ScopeVisualizer fixtureName="scopes/scss/interior.function" />

##### Shell Script

<ScopeVisualizer fixtureName="scopes/shellscript/interior/interior.function" />

<ScopeVisualizer fixtureName="scopes/shellscript/interior/interior.function2" />

### Interior: If

<i>The body of an if/elif/else branch</i>
Expand Down Expand Up @@ -497,6 +511,10 @@ The following are internal scopes. They are not intended for user interaction or

<ScopeVisualizer fixtureName="scopes/scss/interior.if" />

##### Shell Script

<ScopeVisualizer fixtureName="scopes/shellscript/interior/interior.if" />

##### Talon

<ScopeVisualizer fixtureName="scopes/talon/interior.if" />
Expand Down Expand Up @@ -757,6 +775,10 @@ The following are internal scopes. They are not intended for user interaction or

<ScopeVisualizer fixtureName="scopes/scala/interior/interior.switch" />

##### Shell Script

<ScopeVisualizer fixtureName="scopes/shellscript/interior/interior.switch" />

### Interior: Switch case

<i>The body of a case/default branch in a switch statement</i>
Expand Down Expand Up @@ -837,6 +859,10 @@ The following are internal scopes. They are not intended for user interaction or

<ScopeVisualizer fixtureName="scopes/scala/interior/interior.switchCase2" />

##### Shell Script

<ScopeVisualizer fixtureName="scopes/shellscript/interior/interior.switchCase" />

### Interior: Try

<i>The body of a try/catch/finally branch</i>
Expand Down Expand Up @@ -943,4 +969,10 @@ The following are internal scopes. They are not intended for user interaction or

<ScopeVisualizer fixtureName="scopes/scala/interior/interior.while" />

##### Shell Script

<ScopeVisualizer fixtureName="scopes/shellscript/interior/interior.while" />

<ScopeVisualizer fixtureName="scopes/shellscript/interior/interior.while2" />

</ScopeVisualizerProvider>
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ The following are internal scopes. They are not intended for user interaction or

<ScopeVisualizer fixtureName="scopes/scala/string.multiLine" />

##### Shell Script

<ScopeVisualizer fixtureName="scopes/shellscript/string.multiLine" />

##### YAML

<ScopeVisualizer fixtureName="scopes/yaml/string.multiLine" />
Expand Down Expand Up @@ -177,6 +181,10 @@ The following are internal scopes. They are not intended for user interaction or

<ScopeVisualizer fixtureName="scopes/scm/string.singleLine" />

##### Shell Script

<ScopeVisualizer fixtureName="scopes/shellscript/string.singleLine" />

##### Talon list

<ScopeVisualizer fixtureName="scopes/talon-list/string.singleLine" />
Expand Down
Loading
Loading