From 8e187e5cbe3f37754ab39d976f2402759a9f1d7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Crist=C3=B3bal=20Tapia=20Cam=C3=BA?= Date: Sat, 15 Jan 2022 13:24:39 +0100 Subject: [PATCH] cleanup(tex): subscript and superscript would trigger outside math These snippets would expand anywhere, not only in math mode --- UltiSnips/tex.snippets | 8 -------- 1 file changed, 8 deletions(-) diff --git a/UltiSnips/tex.snippets b/UltiSnips/tex.snippets index 577eb5ba6..f10dfa4ee 100644 --- a/UltiSnips/tex.snippets +++ b/UltiSnips/tex.snippets @@ -341,14 +341,6 @@ snip.rv = stripped[0:i] + "\\frac{" + stripped[i+1:-1] + "}" `{$1}$0 endsnippet -snippet '([A-Za-z])_\{(\d+)\}(\d)' "Auto subscript 3+" wrA -`!p snip.rv = match.group(1)`_{`!p snip.rv = match.group(2) + match.group(3)`} -endsnippet - -snippet '([A-Za-z])\^\{(\d+)\}(\d)' "Auto superscript" wrA -`!p snip.rv = match.group(1)`^{`!p snip.rv = match.group(2) + match.group(3)`} -endsnippet - snippet compl "Complement" i ^{c} endsnippet