<div class="gmail_quote">Hello,<div><br></div><div>I use the LaTeX grammar and I have defined my own shortverb command: | so that I can write |foo| and have everything enclosed in | and | treated the same as \verb|foo|. So I'd like to mark the contents between | and | as verbatim, but not in the tabular definition such as </div>
<div><br></div><div>\begin{tabular}{|c|c|c|c}</div><div><br></div><div>My attempt </div><div><br></div><div><div><span style="white-space:pre-wrap"> </span>{<span style="white-space:pre-wrap"> </span>begin = '\|';</div>
<div><span style="white-space:pre-wrap"> </span>beginCaptures = { 0 = { name = 'punctuation.definition.verb.latex'; }; };</div><div><span style="white-space:pre-wrap"> </span>end = '\|';</div>
<div><span style="white-space:pre-wrap"> </span>endCaptures = { 0 = { name = 'punctuation.definition.verb.latex'; }; };</div><div><span style="white-space:pre-wrap"> </span>name = 'markup.raw.verb.latex';</div>
<div><span style="white-space:pre-wrap"> </span>},</div></div><div><br></div><div>works for requirement #1, but not for #2 (the tabular case). What should I do that |c| in \tabular{...} is not defined as verbatim?</div>
<div><br></div><div>Thanks</div><div><br></div><div>Dirk</div></div><br>