mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 04:09:28 +00:00
making the regex more restrictive
This commit is contained in:
@@ -222,7 +222,7 @@
|
||||
// Indent when pressing enter from inside ()
|
||||
{
|
||||
"beforeText": "^.*\\([^\\)]*$",
|
||||
"afterText": "^[^\\(]*\\).*$",
|
||||
"afterText": "^\\s*\\).*$",
|
||||
"action": {
|
||||
"indent": "indentOutdent",
|
||||
"appendText": "\t",
|
||||
@@ -231,7 +231,7 @@
|
||||
// Indent when pressing enter from inside {}
|
||||
{
|
||||
"beforeText": "^.*\\{[^\\}]*$",
|
||||
"afterText": "^[^\\{]*\\}.*$",
|
||||
"afterText": "^\\s*\\}.*$",
|
||||
"action": {
|
||||
"indent": "indentOutdent",
|
||||
"appendText": "\t",
|
||||
@@ -240,7 +240,7 @@
|
||||
// Indent when pressing enter from inside []
|
||||
{
|
||||
"beforeText": "^.*\\[[^\\]]*$",
|
||||
"afterText": "^[^\\[]*\\].*$",
|
||||
"afterText": "^\\s*\\].*$",
|
||||
"action": {
|
||||
"indent": "indentOutdent",
|
||||
"appendText": "\t",
|
||||
|
||||
Reference in New Issue
Block a user