Hello again,
I found the issue. It is the new syntax highlighting included in 2.8. Which can be disabled in the screen option on the theme editor page.
I tested out the new syntax highlighter, it didn’t seem to work at all in Chrome but I got it working in Firefox. It had no problem recognising the code you posted above, so I’m guessing my initial assumption about something else being wrong was correct.