Skip to content

Commit b33e66d

Browse files
committed
feat: Add the some config files:
- The default multi-line language config that define the block comment and auto closing pairs, ready to merge with the internal language configs. - An array of languages to skip while finding the internal language configs, because these languages don't have any useful configs that we need.
1 parent bec4d90 commit b33e66d

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

config/default-multi-line-config.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"comments": {
3+
"blockComment": ["/*", "*/"]
4+
},
5+
"autoClosingPairs": [
6+
{"open": "/**", "close": " */", "notIn": ["string"]},
7+
{"open": "/*!", "close": " */", "notIn": ["string"]}
8+
]
9+
}

config/skip-languages.jsonc

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// Languages to skip, like plaintext, etc. because they don't have any configuration
2+
// properties that we are interested in.
3+
// The idea taken from the _getLanguagesToSkip() function from this StackOverflow answer
4+
// https://stackoverflow.com/a/72988011/2358222
5+
{
6+
"languages": [
7+
"log",
8+
"Log",
9+
"search-result",
10+
"plaintext",
11+
"scminput",
12+
"properties",
13+
"csv",
14+
"tsv",
15+
"excel"
16+
]
17+
}

0 commit comments

Comments
 (0)