Permalink
Browse files

Merge pull request #4 from leifwickland/master

Fix for Issue #3
  • Loading branch information...
2 parents 47dd810 + 8038a50 commit f11f378ec8ec8626ae5bc3d02dd27b6636354f56 @rosstimson committed Jan 24, 2012
Showing with 6 additions and 6 deletions.
  1. +6 −6 plugin/31-create-scala.vim
View
@@ -18,12 +18,12 @@ function! MakeScalaFile()
let p = substitute(x, "/[^/]*$", "", "")
let p = substitute(p, "/", ".", "g")
- let p = substitute(p, ".*\.src$", "@", "") " unnamed package
- let p = substitute(p, ".*\.src\.", "!", "")
- let p = substitute(p, "^!main\.scala\.", "!", "") "
- let p = substitute(p, "^!.*\.ru\.", "!ru.", "")
- let p = substitute(p, "^!.*\.org\.", "!org.", "")
- let p = substitute(p, "^!.*\.com\.", "!com.", "")
+ let p = substitute(p, ".*[.]src$", "@", "") " unnamed package
+ let p = substitute(p, ".*[.]src[.]", "!", "")
+ let p = substitute(p, "^!main[.]scala[.]", "!", "") "
+ let p = substitute(p, "^!.*[.]ru[.]", "!ru.", "")
+ let p = substitute(p, "^!.*[.]org[.]", "!org.", "")
+ let p = substitute(p, "^!.*[.]com[.]", "!com.", "")
" ! marks that we found package name.
if match(p, "^!") == 0

0 comments on commit f11f378

Please sign in to comment.