improved lua snip
This commit is contained in:
parent
4e5225ae06
commit
776b5801a3
@ -1,8 +1,9 @@
|
||||
# lua's indent plugin doesn't work well partly with markers. Use hard-tab for some of this snippet.
|
||||
snippet func
|
||||
alias function
|
||||
function ${1:function_name}(${2:argument})
|
||||
${0:// body...}
|
||||
end
|
||||
function ${1:function_name}(${2:argument})
|
||||
${0:// body...}
|
||||
end
|
||||
|
||||
snippet if
|
||||
if (${1:true}) then
|
||||
@ -18,3 +19,9 @@ snippet forin
|
||||
for ${2:k}, ${3:v} in ${1:ipairs(xs)} do
|
||||
${0}
|
||||
end
|
||||
|
||||
snippet print_table
|
||||
abbr for k, v in ipairs(table) do
|
||||
for (k, v) in ipairs(${1:table}) do
|
||||
print(k, v)
|
||||
end
|
||||
|
@ -2,7 +2,7 @@
|
||||
neo-snippet plugin contains neocomplcache snippets source
|
||||
|
||||
Version: 3.0
|
||||
Author : Shougo <Shougo.Matsu@gmail.com>
|
||||
Author: Shougo <Shougo.Matsu@gmail.com>
|
||||
License: MIT license {{{
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
@ -409,6 +409,9 @@ snippet *neosnippet-unite-action-snippet*
|
||||
==============================================================================
|
||||
CHANGELOG *neosnippet-changelog*
|
||||
|
||||
2012-10-15
|
||||
- Improved lua snip.
|
||||
|
||||
2012-10-07
|
||||
- Improved vim snip.
|
||||
- Improved c snip.
|
||||
|
Loading…
Reference in New Issue
Block a user