<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">To continue with the previous ( & unresolved) post; see: <a href="http://lists.macromates.com/textmate/2008-May/025441.html">http://lists.macromates.com/textmate/2008-May/025441.html</a><div><br></div><div><br></div><div>With this \newenvironment the scope never closes braces or the list environment, and so the syntax color scheme is forever wrong in the rest of the document:</div><div><div><br></div><div>%preamble(fold)</div><div>......</div><div>%create new list environment (bullets - named buls)(fold)</div><div>\newcommand{\bu}{\ensuremath{\bullet}{ }}</div><div><div>\newenvironment{buls}</div><div>{\begin{list}{\bu}</div><div>{</div><div>\setlength{\topsep}{3pt}</div><div>\setlength{\parsep}{0pt}</div><div>\setlength{\itemsep}{2pt}</div><div>\setlength{\labelsep}{0pt}</div><div>\setlength{\itemindent}{10pt}</div><div>\setlength{\leftmargin}{40pt}</div><div>\setlength{\rightmargin}{0pt}</div><div>\normalfont\upshape</div><div>}}</div><div>{\end{list}}</div><div>%create new list environment (bullets - named buls)(end)</div><div>.....</div><div>%preamble(end)</div><div><br></div><div>\begin{document}.....</div><div><br></div><div><br></div><div>some text here ****the scope here is:</div><div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">             </span>text.tex.latex</div><div><span class="Apple-tab-span" style="white-space:pre">               </span>meta.group.braces.tex</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>meta.function.environment.list.latex</div><div><br></div><div><br></div><div>___when it should just be (and in fact is without </div><div><span class="Apple-tab-span" style="white-space:pre"> </span>the previous \newenvironment definition):</div><div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                </span>text.tex.latex</div><div><br></div></div></div><div>....\end{document}</div><div><br></div><div><br></div><div>It seems to be a bug in the Language definitions of these scopes (tex and/or latex).</div><div>Can this be solved (and maybe the bundle updated with the correction)?</div><div><br></div><div>Thanks,</div></div></div></body></html>