Skip to content

Commit

Permalink
Add language configuration (#779)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yash-Singh1 authored Oct 4, 2021
1 parent cebc7e8 commit 4f3ee60
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
35 changes: 35 additions & 0 deletions language-configuration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"comments": {
"lineComment": "//",
"blockComment": ["/*", "*/"]
},
"brackets": [
["{", "}"],
["[", "]"],
["(", ")"],
["<", ">"]
],
"autoClosingPairs": [
{ "open": "{", "close": "}", "notIn": ["comment"] },
{ "open": "[", "close": "]", "notIn": ["comment"] },
{ "open": "(", "close": ")", "notIn": ["comment"] },
{ "open": "'", "close": "'", "notIn": ["comment"] },
{ "open": "\"", "close": "\"", "notIn": ["comment"] },
{ "open": "`", "close": "`", "notIn": ["comment"] },
{ "open": "/**", "close": " */", "notIn": ["string"] }
],
"surroundingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["'", "'"],
["\"", "\""],
["`", "`"],
["<", ">"]
],
"colorizedBracketPairs": [
["(", ")"],
["[", "]"],
["{", "}"]
]
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@
".jsx.snap",
".ts.snap",
".tsx.snap"
]
],
"configuration": "./language-configuration.json"
}
],
"grammars": [
Expand Down

0 comments on commit 4f3ee60

Please sign in to comment.