Skip to content

Commit 79991a8

Browse files
authored
add folding regions (#111)
1 parent 1c4bc50 commit 79991a8

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,3 +133,4 @@ All notable changes to the "vscode-nushell-lang" extension will be documented in
133133
- Error squigglys
134134
- Auto-complete
135135
- Editor IDE Settings to help configure some features
136+
- Added folding regions with `# region:` and `# endregion`

language-configuration.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111
["[", "]"],
1212
["(", ")"]
1313
],
14+
"colorizedBracketPairs": [
15+
["{", "}"],
16+
["[", "]"],
17+
["(", ")"]
18+
],
1419
// symbols that are auto closed when typing
1520
"autoClosingPairs": [
1621
{ "open": "{", "close": "}" },
@@ -32,8 +37,8 @@
3237
],
3338
"folding": {
3439
"markers": {
35-
"start": "^def\\b",
36-
"end": "^\\}"
40+
"start": "^\\s*# region:",
41+
"end": "^\\s*# endregion"
3742
}
3843
},
3944
"wordPattern": "(-?\\d*\\.\\d\\w*)|([^\\`\\~\\!\\@\\#\\%\\^\\&\\*\\(\\)\\-\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:\\'\\\"\\,\\.\\<\\>\\/\\?\\s]+)",

0 commit comments

Comments
 (0)