]> git.rmz.io Git - dotfiles.git/blobdiff - vim/ultisnips/all.snippets
nvim: add FPP copyright snippet
[dotfiles.git] / vim / ultisnips / all.snippets
index f5a9f46925e40fc2fe49a45d5688a0e84ed57f8d..1d306ad46d8428051d27d0f6988f1c00f6a40935 100644 (file)
@@ -29,13 +29,13 @@ def _parse_comments(s):
                                flags,text = next(i).split(':', 1)
                                assert(flags[0] == 'e')
                                ctriple.append(text)
                                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)
 
 
                                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, ""))
                        elif 'b' in flags and 'f' not in flags:
                                if len(text) == 1:
                                        rv.insert(0, (text,text,text, text, ""))
@@ -64,11 +64,11 @@ endglobal
 
 
 snippet fix "FIXME" w
 
 
 snippet fix "FIXME" w
-`!p snip.rv = c`FIXME~~sb ${VISUAL}${0}  (`!v strftime("%Y-%m-%d")`)
+`!p snip.rv = c`FIXME ${0}
 endsnippet
 
 snippet todo "TODO" w
 endsnippet
 
 snippet todo "TODO" w
-`!p snip.rv = c`TODO~~sb ${VISUAL}${0}  (`!v strftime("%Y-%m-%d")`)
+`!p snip.rv = c`TODO ${0}
 endsnippet
 
 snippet GPL2 "GPL2 License" b
 endsnippet
 
 snippet GPL2 "GPL2 License" b
@@ -405,3 +405,13 @@ snippet AGPL "AGPL License" b
 `!p snip.rv = i + m` along with this program. If not, see <http://www.gnu.org/licenses/>.
 `!p snip.rv = i + e`
 endsnippet
 `!p snip.rv = i + m` along with this program. If not, see <http://www.gnu.org/licenses/>.
 `!p snip.rv = i + e`
 endsnippet
+
+snippet FPP "FPP Copyright" b
+`!p snip.rv = b`
+`!p snip.rv = i + m` Copyright © Focal Point Positioning Limited `!v strftime("%Y")`. All Rights Reserved.
+`!p snip.rv = i + m` This code is the copyright of Focal Point Positioning Limited and
+`!p snip.rv = i + m` cannot be used, copied or distributed without the express written
+`!p snip.rv = i + m` permission of Focal Point Positioning Limited.
+`!p snip.rv = i + e`
+${0}
+endsnippet