Yes, that shall work as you expect.
But, I was not able to reproduce the scenario...
By me or there is no indent after <Enter> or <Shift-Tab> does unindent properly. Which syntax have you used?
Maybe you have some invisible white space character in? It can result in such behaviour. Try to disable all plugins, maybe they influence logic.