making the regex more restrictive

This commit is contained in:
Aiday Marlen Kyzy
2024-03-21 17:56:44 +01:00
parent ea24475767
commit f2758ed8f7
2 changed files with 6 additions and 6 deletions

View File

@@ -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",