Skip to content
This repository has been archived by the owner on Apr 30, 2024. It is now read-only.

Commit

Permalink
fixed auto-close
Browse files Browse the repository at this point in the history
  • Loading branch information
ImUrX committed Aug 17, 2020
1 parent 6deaf1e commit 8027122
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to the "scarpet" extension will be documented in this file.

## [0.1.8] - 2020-08-17
### Fixed
- No auto-closing for curly and square brackets

## [0.1.7] - 2020-08-17
### Added
- Support for curly and square brackets
Expand Down
16 changes: 13 additions & 3 deletions language-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,22 @@
"lineComment": "//",
},
"brackets": [
["(", ")"]
["(", ")"],
["[", "]"],
["{", "}"]
],
"autoClosingPairs": [{
"open": "(",
"close": ")"
},
{
"open": "[",
"close": "]"
},
{
"open": "{",
"close": "}"
},
{
"open": "'",
"close": "'",
Expand All @@ -20,7 +30,7 @@
"notIn": ["string", "comment"]
}
],
"autoCloseBefore": ";:.,=) \n\t",
"autoCloseBefore": ";:.,=}]s) \n\t",
"surroundingPairs": [
["(", ")"],
["'", "'"],
Expand All @@ -33,5 +43,5 @@
"end": "^\\s*\\)\\b"
}
},
"wordPattern": "(-?\\d*\\.\\d+)|([^\\~\\:\\+\\-\\!\\^\\*\/\\%\\=\\<\\>\\&\\|\\;\\,\\(\\)\\']+)"
"wordPattern": "(-?\\d*\\.\\d+)|([^\\~\\:\\+\\-\\!\\^\\*\/\\%\\=\\<\\>\\&\\|\\;\\,\\(\\)\\'\\[\\]\\{\\}]+)",
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"bugs": {
"url": "https://github.com/ImUrX/vscode-scarpet/issues"
},
"version": "0.1.7",
"version": "0.1.8",
"engines": {
"vscode": "^1.43.0"
},
Expand Down

0 comments on commit 8027122

Please sign in to comment.