That code works on the latest version (0.4.0.111)
However, if you paste that code, the cursor ends up being on the last }, which is correctly highlighted, however the corresponding { is not highlighted in this case.