The indention related settings in *.sublime-settings file has no relations to special rules. There are only defined how to indent, but not when. So works it with the default behaviour: Next line has the same indent level like the current line.
Therefore, there is the * .tmPreference. Its also the same for comments. This file is created the same way as a theme file (as a JSON file and then converted to plist). The used scope names are correct. ST works with all scopes from TextMate.
It may be, that some settings in environment must be changed too. But nowhere I’ve found an tutorial for this problem.
Edit:
Now I’ve solved it by another way: Key bindings
[code]
…,
{ “keys”: “enter”], “command”: “insert”, “args”: {“characters”: “\n\t”}, “context”:
{ "key": "setting.auto_indent", "operator": "equal", "operand": true },
{ "key": "preceding_text", "operator": "regex_contains", "operand": "(?i:case|do|for|func|then|else|elseif|while|select|switch|with)", "match_all": true },
{ "key": "selector", "operator": "equal", "operand": "source.autoit" }
]
},
...
][/code]
But Thanks for reading my post.