making the regex pattern so that we don't match if/for/while inside of a word

This commit is contained in:
Aiday Marlen Kyzy
2024-03-21 17:24:52 +01:00
parent 5d1d7d98a6
commit 20b54ec19e
3 changed files with 2 additions and 31 deletions

View File

@@ -139,7 +139,7 @@
"pattern": "^(\\t|[ ])*[ ]\\*[^/]*\\*/\\s*$|^(\\t|[ ])*[ ]\\*/\\s*$|^(\\t|[ ])*\\*([ ]([^\\*]|\\*(?!/))*)?$"
},
"indentNextLinePattern": {
"pattern": "^((.*=>\\s*)|(.*(if|while|for)\\s*\\(.*\\)\\s*))$"
"pattern": "^((.*=>\\s*)|((.*[^\\w]+|\\s*)(if|while|for)\\s*\\(.*\\)\\s*))$"
}
},
"onEnterRules": [