Functions with arguments work better now. Takes care of the cases: \foo{bar [} \foo{{bar}} Changed: U trunk/Bundles/Latex.tmbundle/Syntaxes/TeX.plist U trunk/Bundles/Latex.tmbundle/Syntaxes/test.tex