Skip to content

Commit

Permalink
add autoCloseBefore to make autoclose smarter
Browse files Browse the repository at this point in the history
  • Loading branch information
ffm committed Nov 24, 2022
1 parent e722634 commit 48c9390
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 79 deletions.
133 changes: 55 additions & 78 deletions language-configuration.json
Original file line number Diff line number Diff line change
@@ -1,81 +1,58 @@
{
"capabilities": {
"documentOnTypeFormattingProvider": {
"firstTriggerCharacter": "}",
"moreTriggerCharacter": [
";",
","
]
},
"documentRangeFormattingProvider": "true",
"renameProvider": "true",
"documentHighlightProvider": "true",
"referencesProvider": "true"
"capabilities": {
"documentOnTypeFormattingProvider": {
"firstTriggerCharacter": "}",
"moreTriggerCharacter": [";", ","]
},
"folding": {
"markers": {
"start": "[{\\[(]\\s*$",
"end": "^\\s*[}\\])]"
}
},
"comments": {
// symbol used for single line comment. Remove this entry if your language does not support line comments
"lineComment": "#"
"documentRangeFormattingProvider": "true",
"renameProvider": "true",
"documentHighlightProvider": "true",
"referencesProvider": "true"
},
"folding": {
"markers": {
"start": "[{\\[(]\\s*$",
"end": "^\\s*[}\\])]"
}
},
"comments": {
// symbol used for single line comment. Remove this entry if your language does not support line comments
"lineComment": "#"
},
// symbols used as brackets
"brackets": [
["{", "}"],
["[", "]"],
["(", ")"]
],
// symbols that are auto closed when typing
"autoClosingPairs": [
{
"open": "{",
"close": "}"
},
// symbols used as brackets
"brackets": [
[
"{",
"}"
],
[
"[",
"]"
],
[
"(",
")"
]
],
// symbols that are auto closed when typing
"autoClosingPairs": [
{
"open": "{",
"close": "}"
},
{
"open": "[",
"close": "]"
},
{
"open": "(",
"close": ")"
},
{
"open": "\"",
"close": "\"",
"notIn": [
"string"
]
}
],
// symbols that that can be used to surround a selection
"surroundingPairs": [
[
"{",
"}"
],
[
"[",
"]"
],
[
"(",
")"
],
[
"\"",
"\""
]
]
}
{
"open": "[",
"close": "]"
},
{
"open": "(",
"close": ")"
},
{
"open": "\"",
"close": "\"",
"notIn": ["string"]
}
],

"autoCloseBefore": ";=}]) \n\t",

// symbols that that can be used to surround a selection
"surroundingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""]
]
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"displayName": "F5 Networks iRules",
"description": "F5 Networks iRules Extension. Supports all BIG-IP versions up to 17.0",
"publisher": "bitwisecook",
"version": "1.6.19",
"version": "1.6.20",
"keywords": [
"f5",
"f5networks",
Expand Down

0 comments on commit 48c9390

Please sign in to comment.