pear-tree icon indicating copy to clipboard operation
pear-tree copied to clipboard

Add TeX plugin

Open TimothyGu opened this issue 6 years ago • 1 comments

Matches environment \begin/\end.

TimothyGu avatar Jun 02 '19 20:06 TimothyGu

Nice patch. This should really include \( and \[, though:

 let b:pear_tree_pairs = extend(deepcopy(g:pear_tree_pairs), {
-            \ '\\begin{*}': {'closer': '\\end{*}', 'until': '[{}[:space:]]'},
-            \ '$$': {'closer': '$$'},
+            \ '\\(': {'closer': '\\)'},
+            \ '\\[': {'closer': '\\]'},
             \ '$': {'closer': '$'}
             \ }, 'keep')

joaoseckler avatar Jun 18 '23 02:06 joaoseckler