I am using PhpStorm (WebStorm) to build an angular 2 app using typescript. I have a .ts file that exports a constant that has the HTML (the view) of the component.
PhpStorm (WebStorm) has this cool feature that recognizes HTML Syntax, error highlighting and coding assistance within backticks (`). The issue that I am facing is that after 4120 characters, the HTML syntax recognition stops and the code becomes plain text.
I have searched around but haven't found anything on it. Is this a bug? Maybe there's a setting for it?
4120 characters with HTML syntax working:

4121 characters with HTML syntax NOT working:

PhpStorm Version:
PhpStorm 2016.1
Build #PS-145.258, built on March 16, 2016
JRE: 1.8.0_40-release-b132 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o