Error using CASE WHEN statment

Try just
Match (n)
CASE

The parser fails the 'S'