Fixed #1297: Improve Unicode support in the identifier parser

Signed-off-by: Anton Kovalyov <anton@kovalyov.net>
Fixes #935: Detect the switch indentation style and use that.

Look for the next token and try to determine whether the 'case'
statements should be indented or not from that.

Closes #1228.