]> git.rmz.io Git - dotfiles.git/commitdiff
vim: fix fix and todo snippets
authorSamir Benmendil <me@rmz.io>
Thu, 27 Aug 2015 09:12:28 +0000 (10:12 +0100)
committerSamir Benmendil <me@rmz.io>
Thu, 27 Aug 2015 09:12:28 +0000 (10:12 +0100)
vim/ultisnips/all.snippets

index f5a9f46925e40fc2fe49a45d5688a0e84ed57f8d..71a46c22ec4d6df3545921f30d46e02ca6012e26 100644 (file)
@@ -29,13 +29,13 @@ def _parse_comments(s):
                                flags,text = next(i).split(':', 1)
                                assert(flags[0] == 'e')
                                ctriple.append(text)
-                               ctriple.append(indent)
 
                                flags,text = next(i).split(':', 1)
                                assert(len(flags) == 0)
                                ctriple.append(text)
 
-                               rv.append(ctriple)
+                               ctriple.append(indent)
+                               rv.insert(0, ctriple)
                        elif 'b' in flags and 'f' not in flags:
                                if len(text) == 1:
                                        rv.insert(0, (text,text,text, text, ""))