Move onEnterRules to language-configuration.json

This commit is contained in:
Alexandru Dima
2021-01-20 12:20:27 +01:00
parent 368c03fdc8
commit 2d5f7fd072
9 changed files with 7 additions and 81 deletions

View File

@@ -46,5 +46,11 @@
"start": "^\\s*#\\s*region\\b",
"end": "^\\s*#\\s*endregion\\b"
}
}
},
"onEnterRules": [
{
"beforeText": "^\\s*(?:def|class|for|if|elif|else|while|try|with|finally|except|async).*?:\\s*$",
"action": { "indent": "indent" }
}
]
}