Improved scala snip -- prev_word wasn't used properly

This commit is contained in:
ujihisa 2012-10-20 00:24:26 -07:00
parent 7286b8e819
commit 76e8612410
2 changed files with 6 additions and 4 deletions

View File

@ -15,13 +15,11 @@ prev_word '^'
snippet p snippet p
abbr println() abbr println()
prev_word '^' println(${1})
println(${1})${0}
snippet pn snippet pn
abbr println('name, name) abbr println('name, name)
prev_word '^' println('${1:name}, $1)
println('${1:name}, $1)${0}
snippet main snippet main
abbr def main(args: Array[String]) { abbr def main(args: Array[String]) {
@ -32,6 +30,7 @@ prev_word '^'
snippet hello snippet hello
abbr object HelloWorld { def main(...) } abbr object HelloWorld { def main(...) }
prev_word '^'
object HelloWorld { object HelloWorld {
def main(args: Array[String]) { def main(args: Array[String]) {
println("Hello, world!") println("Hello, world!")

View File

@ -443,6 +443,9 @@ snippet *neosnippet-unite-action-snippet*
============================================================================== ==============================================================================
CHANGELOG *neosnippet-changelog* CHANGELOG *neosnippet-changelog*
2012-10-20
- Improved scala snip.
2012-10-19 2012-10-19
- Fixed syntax highlight. - Fixed syntax highlight.
- Improved documentation. - Improved documentation.