An earlier patch (bug 8279) made hideshow robust to various characters appearing in comments. Here's a small patch that extends this, so that hideshow becomes robust to various characters in strings also.