UltiSnips/UltiSnips
Andrew Ruder 78c390b026 all.snippets: bbox and box snippet Python 3 compatibility
I'm not much of a python pro, but it appears the correct
way to iterate is next(i) instead of i.next().  i.next() has
been renamed to i.__next__() on python3, but next(i) works on both.

Pasted below is the following test script ran through python
2.6, 2.7, and 3.3:
i = iter("1,2".split(","))
next(i)
i.next()
i.__next__()
next(i)

Python 2.6.8 (unknown, Jan 26 2013, 14:35:25)
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> i = iter("1,2".split(","))
>>> next(i)
'1'
>>> i.next()
'2'
>>> i.__next__()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'listiterator' object has no attribute '__next__'
>>> next(i)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
StopIteration
>>>

Python 2.7.6 (default, Dec  6 2013, 20:05:37)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> i = iter("1,2".split(","))
>>> next(i)
'1'
>>> i.next()
'2'
>>> i.__next__()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'listiterator' object has no attribute '__next__'
>>> next(i)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
StopIteration
>>>

Python 3.3.3 (default, Jan  2 2014, 19:09:02)
[GCC 4.8.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> i = iter("1,2".split(","))
>>> next(i)
'1'
>>> i.next()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'list_iterator' object has no attribute 'next'
>>> i.__next__()
'2'
>>> next(i)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
StopIteration
>>>

Signed-off-by: Andrew Ruder <andrew.ruder@elecsyscorp.com>
2014-02-05 11:40:07 -06:00
..
all.snippets all.snippets: bbox and box snippet Python 3 compatibility 2014-02-05 11:40:07 -06:00
bib.snippets Corrects formatting of snippets 2013-05-26 15:48:58 -05:00
bindzone.snippets Add bind zonefile snippets for creating a new zone, and inserting an A record 2012-02-21 23:59:08 -06:00
c.snippets added .. else if (eli) .. snippet 2014-01-16 21:44:28 +00:00
coffee_jasmine.snippets Coffee and Jasmine snippets by Ches Martin 2012-05-22 11:14:58 +02:00
coffee.snippets Coffee and Jasmine snippets by Ches Martin 2012-05-22 11:14:58 +02:00
cpp.snippets Added ${VISUAL} markers to C and C++ snippets 2013-01-23 17:33:16 -08:00
cs.snippets Small fixes and new c-sharp (cs) snippets by Matthew Strawbridge. 2013-04-15 07:19:07 +02:00
css.snippets Added a syntax file by Timo Schmiade. Made sure all shipped files are recognized as snippets, even when ftdetect is not in /Users/sirver 2011-02-17 14:07:27 +01:00
d.snippets A toString() snippet. 2012-12-01 18:15:01 +01:00
django.snippets Removed mistake 2013-10-30 16:47:10 +01:00
erlang.snippets Added a syntax file by Timo Schmiade. Made sure all shipped files are recognized as snippets, even when ftdetect is not in /Users/sirver 2011-02-17 14:07:27 +01:00
eruby.snippets Replace 'INLINE' tags with 'EXPR' tags in form_for snippets. 2014-02-01 14:19:45 -05:00
go.snippets Merge pull request #112 from dsimmons/enhancement/go-snippets 2013-11-19 07:00:14 -08:00
haskell.snippets Add Haskell snippets. 2012-02-21 22:55:20 +08:00
help.snippets Adhere to pseudostandard of length of sections in Vim help. Patch by Martin Krauskopf 2012-07-08 12:01:25 +02:00
html.snippets html: added w in useful places. Patch by Julian Martin Grinblat. 2013-12-14 14:48:52 +01:00
htmldjango.snippets htmldjango is django + html 2012-02-06 10:11:52 +01:00
java.snippets Small fixes and new c-sharp (cs) snippets by Matthew Strawbridge. 2013-04-15 07:19:07 +02:00
javascript_jasmine.snippets Coffee and Jasmine snippets by Ches Martin 2012-05-22 11:14:58 +02:00
javascript_jsdoc.snippets Add snippet for the @version tag 2014-01-24 14:49:24 +03:00
javascript.snippets Re-order JS for snippets 2014-01-06 22:24:13 -08:00
jinja2.snippets A fairly comprehensive Jinja2 snippets collection 2011-08-02 01:26:51 +03:00
json.snippets Updated go snippets, added json snippets 2012-02-24 09:42:56 +01:00
ledger.snippets Corrects formatting of snippets 2013-05-26 15:48:58 -05:00
lhaskell.snippets Add lhaskell support 2013-07-30 09:45:20 +01:00
lua.snippets Added my snippet collection for Lua 2011-03-14 20:36:45 +01:00
mako.snippets Fixed a small thin in the mako snippets 2011-04-09 16:30:41 +02:00
markdown.snippets "markdown" is right filetype, not "mkd" 2012-06-26 19:31:29 +11:00
objc.snippets Added a syntax file by Timo Schmiade. Made sure all shipped files are recognized as snippets, even when ftdetect is not in /Users/sirver 2011-02-17 14:07:27 +01:00
ocaml.snippets OCaml snippets by Rudi Grinberg. 2013-03-25 08:58:55 +01:00
perl.snippets use parent in place of "base" 2013-12-02 20:27:54 +13:00
php.snippets Make construct snippet PSR compliant. 2014-01-08 10:14:28 +01:00
puppet.snippets Fixed edge case with multiple init directories 2013-06-29 22:54:26 +10:00
python.snippets update after SirVer review 2013-11-19 21:59:12 +01:00
rails.snippets Some fixes in rails and ruby snippets 2012-02-12 08:10:27 +01:00
README Added a small notice about contribution to the README 2011-02-17 13:59:40 +01:00
rst.snippets Added chapter and part to RST snippets. Suggested by Chen Houwu 2012-04-25 09:14:19 +02:00
ruby.snippets Merge pull request #117 from mygoare/patch-2 2013-12-02 22:30:18 -08:00
scss.snippets Add @import to scss snippets 2014-01-14 10:27:09 -08:00
sh.snippets Made detection of sh more stable. 2013-10-03 13:10:03 +02:00
snippets.snippets Added a vis snippet to snippets.snippets 2012-02-16 20:36:38 +01:00
tcl.snippets Added a syntax file by Timo Schmiade. Made sure all shipped files are recognized as snippets, even when ftdetect is not in /Users/sirver 2011-02-17 14:07:27 +01:00
tex.snippets Added bunch of snippets to tex.snippets 2014-01-25 10:41:03 +01:00
texmath.snippets Improvements to the tex/texmath snippets by jorge 2012-02-06 10:10:41 +01:00
vim.snippets ew java snippets for constructors for auto creation of setter/getters 2013-01-29 11:38:09 +00:00
xhtml.snippets Added an xhtml snippets file which only extends html but defines no new snippets 2011-09-23 18:07:02 +02:00
xml.snippets Small fixes and new c-sharp (cs) snippets by Matthew Strawbridge. 2013-04-15 07:19:07 +02:00
zsh.snippets Add snippets for zsh 2012-11-03 15:48:27 +01:00

This directory contains the main scripts that come bundled with UltiSnips.

Standing On The Shoulders of Giants
===================================

The snippets have been collected from various other project which I want to
express my gratitude for. My main source for inspiration where the following
two projects:

   TextMate: http://svn.textmate.org/trunk/Bundles/
   SnipMate: http://code.google.com/p/snipmate/

All snippets from those sources were copied and cleaned up, so that they are 
  - not using shell script, only python (so they are cross platform compatible)
  - not using any feature that UltiSnips doesn't offer

UltiSnips has seen contributions by various individuals. Those contributions
have been merged into this collection seamlessly and without further comments.

-- vim:ft=rst:nospell: