I've improved a bit the indentation and added a missing of the b:current_syntax code.
b:current_syntax