Skip to content
This repository has been archived by the owner on Jun 15, 2021. It is now read-only.

Commit

Permalink
feat: provide brace matching
Browse files Browse the repository at this point in the history
Closes #16
  • Loading branch information
OmarTawfik committed Mar 13, 2019
1 parent ace6018 commit e83ab47
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"postinstall": "node ./node_modules/vscode/bin/install"
},
"engines": {
"vscode": "1.31.1"
"vscode": "^1.31.1"
},
"commitlint": {
"extends": [
Expand Down
3 changes: 2 additions & 1 deletion scripts/package-vscode.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
{
"id": "github-actions",
"extensions": [".workflow"],
"aliases": ["GitHub Actions", "GitHub Workflows"]
"aliases": ["GitHub Actions", "GitHub Workflows"],
"configuration": "./resources/language-configuration.json"
}
],
"grammars": [
Expand Down
20 changes: 20 additions & 0 deletions src/resources/language-configuration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"brackets": [["{", "}"], ["[", "]"]],
"autoClosingPairs": [
{
"open": "{",
"close": "}"
},
{
"open": "[",
"close": "]"
},
{
"open": "\"",
"close": "\"",
"notIn": ["string", "comment"]
}
],
"autoCloseBefore": "} \r\n\t",
"surroundingPairs": [["{", "}"], ["[", "]"], ["\"", "\""]]
}

0 comments on commit e83ab47

Please sign in to comment.