Skip to content

Commit 1e9edfa

Browse files
committed
style: Basically format *.language-configuration.json files
1 parent a7e1b5a commit 1e9edfa

File tree

5 files changed

+27
-8
lines changed

5 files changed

+27
-8
lines changed

.prettierrc.cjs

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ module.exports = {
66
files: '*.tmLanguage.json',
77
options: {
88
plugins: ['prettier-plugin-sort-json'],
9-
parser: 'json',
109
jsonSortOrder: JSON.stringify({
1110
$schema: null,
1211
name: null,
@@ -27,5 +26,25 @@ module.exports = {
2726
}),
2827
},
2928
},
29+
{
30+
files: '*.language-configuration.json',
31+
options: {
32+
plugins: ['prettier-plugin-sort-json'],
33+
jsonSortOrder: JSON.stringify({
34+
$schema: null,
35+
comments: null,
36+
wordPattern: null,
37+
colorizedBracketPairs: null,
38+
brackets: null,
39+
autoCloseBefore: null,
40+
autoClosingPairs: null,
41+
surroundingPairs: null,
42+
lineComment: null,
43+
blockComment: null,
44+
'/^[^\\d+]/': 'lexical',
45+
'/^\\d+/': 'numeric',
46+
}),
47+
},
48+
},
3049
],
3150
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
{
2+
"colorizedBracketPairs": [["(", ")"]],
23
"brackets": [
34
["(", ")"],
45
["[", "]"],
56
["{", "}"],
67
["<", ">"]
78
],
9+
"autoCloseBefore": "()[{< |$+*?",
810
"autoClosingPairs": [
911
["(", ")"],
1012
["[", "]"],
1113
["{", "}"],
1214
["<", ">"]
1315
],
14-
"autoCloseBefore": "()[{< |$+*?",
1516
"surroundingPairs": [
1617
["(", ")"],
1718
["[", "]"]
18-
],
19-
"colorizedBracketPairs": [["(", ")"]]
19+
]
2020
}

language-configuration/jsonl.language-configuration.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
{ "open": "\"", "close": "\"", "notIn": ["string", "comment"] },
1616
{ "open": "`", "close": "`", "notIn": ["string", "comment"] }
1717
],
18-
"wordPattern": "(\"(?:[^\\\\\\\"]*(?:\\\\.)?)*\"?)|[^\\s{}\\[\\],:]+",
1918
"indentationRules": {
2019
"increaseIndentPattern": "({+(?=([^\"]*\"[^\"]*\")*[^\"}]*$))|(\\[+(?=([^\"]*\"[^\"]*\")*[^\"\\]]*$))",
2120
"decreaseIndentPattern": "^\\s*[}\\]],?\\s*$"
22-
}
21+
},
22+
"wordPattern": "(\"(?:[^\\\\\\\"]*(?:\\\\.)?)*\"?)|[^\\s{}\\[\\],:]+"
2323
}

language-configuration/mapfile.language-configuration.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
["(", ")"],
55
["\"", "\""]
66
],
7+
"autoCloseBefore": ";:.,=])\n\t",
78
"autoClosingPairs": [
89
{ "open": "[", "close": "]" },
910
{ "open": "(", "close": ")" },
1011
{ "open": "\"", "close": "\"", "notIn": ["string"] }
1112
],
12-
"autoCloseBefore": ";:.,=])\n\t",
1313
"surroundingPairs": [
1414
["[", "]"],
1515
["(", ")"],

language-configuration/odin.language-configuration.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
["[", "]"],
99
["(", ")"]
1010
],
11+
"autoCloseBefore": ";:.,=}])>` \n\t",
1112
"autoClosingPairs": [
1213
{ "open": "{", "close": "}" },
1314
{ "open": "[", "close": "]" },
@@ -17,7 +18,6 @@
1718
{ "open": "`", "close": "`", "notIn": ["string", "comment"] },
1819
{ "open": "/*", "close": " */", "notIn": ["string"] }
1920
],
20-
"autoCloseBefore": ";:.,=}])>` \n\t",
2121
"surroundingPairs": [
2222
["{", "}"],
2323
["[", "]"],

0 commit comments

Comments
 (0)