How can I solve this quotation problem with interlinear glosses in gb4e?

Observe how after the interlinear gloss I have to insert [''] -- otherwise, the quote continues (and in textmate4 the rest of the text is colored accordingly). Is there some way to resolve this without putting the [''] at the end?

\documentclass[11pt,a4paper]{book}
\setcounter{secnumdepth}{4}
\usepackage{graphicx}
\usepackage{gb4e}
\usepackage{tipa}
\usepackage{setspace}
\usepackage[T1]{fontenc}
\usepackage{multirow}
\setcounter{part}{-1}
\setcounter{subsection}{0}
\begin{document}

\begin{exe}
\ex {\glll Um ch'aqitumpiw     \\
\{u-m(a)    ch'aq(u)-itu-mpi-w(a)    \\
that-\textsc{cp}    brain-\textsc{dm.masc-com-decl} \\}

\sn{\glll zanq't'ast''  qow [sumitr]_{pp}''. \\
zanq'(a)-t'a-s(i)-t       q(e)-o-w(a)     \emph{sumit}-r(i)\}\\
eat-\textsc{m-refl-1sim}  say-\textsc{3sim-decl}  summit-\textsc{all}\\
\glt {}Thus with a bit of brains, I ate'', he said, [on the summit]_{pp}.''' [FBV5.52A]}
\end{exe}

''
\end{document}
• I'm not sure I understand your problem. This compiles fine without the final '' so I don't understand by your saying that the quote continues. Is there a problem with the output or just with the syntax colouring in Textmate? Jul 1 '13 at 5:23
• Compiling is indeed fine -- but TextMate believes that without those end quotes, the entirety of what remains of my text is a giant quote. This is not just aesthetic -- in the following text, it makes it impossible to see what is an authentic quote and what is not. Jul 1 '13 at 5:44
• So this is a problem with the editor. Quote matching isn't trivial, so it's not too surprising that it can get confused. You could avoid the problem by using the csquotes package and use \enquote{<text>} instead of actual quotation marks. See for example Automatically convert quotations in the form of "abc" to become `abc". Jul 1 '13 at 6:04
• Also, how is this problem related to linguistics or gb4e? Presumably the problem will arise in any environment that splits across lines no? Jul 1 '13 at 6:04
• The best way to cope with the problem would be to disable the highlighting of quoted material, which I find disturbing in general. Unfortunately, TextMate's interface to syntax highlighting is not “friendly”; “daunting” might be a better description. Jul 1 '13 at 9:02