Add {{~ and ~}} support to solve WEB-11599

I keep running into problems because of [WEB-11599](http://youtrack.jetbrains.com/issue/WEB-11599), and I figured it would be solved quicker if I provide code :)