Issue from https://github.com/sublimehq/sublime_text/issues/3170 Try to add window.foo = "{\"prop\": true}"; or sessionStorage.bar = "\"a\": 1"; // here goes whatever code before any JS code - you will notice Sublime Text syntax highlighting broken after that line. 