1. has2k1
  2. slimv

Commits

has2k1  committed 06ab688

Recognise domain reversed package names

Examples of names previously unrecognisable
com.gigamonkeys.pathnames
:com.gigamonkeys.pathnames
#:com.gigamonkeys.pathnames

Solution
Copy the packagename as a vim WORD and split at either
space or close bracket.

  • Participants
  • Parent commits 565b5c7
  • Branches default

Comments (0)

Files changed (1)

File ftplugin/slimv.vim

View file
     if found
         if g:slimv_swank
             silent normal! ww
-            let s:swank_package = expand('<cword>')
+            let l:packagename_tokens = split(expand('<cWORD>'),')\|\s')
+            let s:swank_package = l:packagename_tokens[0]
         else
             " Put the form just found at the beginning of the selection
             let sel = SlimvGetSelection()