Skip to content

Commit 925c26d

Browse files
authored
Merge pull request #611 from jpogran/fix-language-config
(GH-610) Fix surroundingPairs
2 parents 7499fcb + 2a2433e commit 925c26d

File tree

4 files changed

+81
-3
lines changed

4 files changed

+81
-3
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
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 that can be used to surround a selection
23+
"surroundingPairs": [
24+
["{", "}"],
25+
["[", "]"],
26+
["(", ")"],
27+
["\"", "\""],
28+
["'", "'"]
29+
],
30+
// support for region folding
31+
"folding": {
32+
"offSide": true,
33+
"markers": {
34+
"start": "^\\s*#\\s*region\\b",
35+
"end": "^\\s*#\\s*endregion\\b"
36+
}
37+
}
38+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
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 that can be used to surround a selection
23+
"surroundingPairs": [
24+
["{", "}"],
25+
["[", "]"],
26+
["(", ")"],
27+
["\"", "\""],
28+
["'", "'"]
29+
],
30+
// support for region folding
31+
"folding": {
32+
"offSide": true,
33+
"markers": {
34+
"start": "^\\s*#\\s*region\\b",
35+
"end": "^\\s*#\\s*endregion\\b"
36+
}
37+
}
38+
}

package.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@
9090
"extensions": [
9191
".pp",
9292
".epp"
93-
]
93+
],
94+
"configuration": "./languages/puppet-language-configuration.json"
9495
},
9596
{
9697
"id": "puppetfile",
@@ -100,7 +101,8 @@
100101
],
101102
"filenames": [
102103
"Puppetfile"
103-
]
104+
],
105+
"configuration": "./languages/puppetfile-language-configuration.json"
104106
}
105107
],
106108
"jsonValidation": [

src/extension.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ let extensionFeatures: IFeature[] = [];
3636

3737
export function activate(context: vscode.ExtensionContext) {
3838
extContext = context;
39-
39+
4040
setLanguageConfiguration();
4141

4242
notifyOnNewExtensionVersion(extContext);

0 commit comments

Comments
 (0)