On Fri, Sep 5, 2014 at 5:45 AM, Bram Moolenaar <[email protected]> wrote:

>
> Manuel Ortega wrote
>
> > In $VIMRUNTIME/filetype.vim there is no entry for .rockspec files
> > (luarocks).
> >
> > I think all it takes is:
> >
> > " Luarocks
> > au BufNewFile,BufRead *.rockspec setf lua
>
> That's easy to add.


I'm not sure what the sorting rules are for the simple entries in
filetype.vim, so I put it right after .lua:

diff -r dde8ff798ed9 runtime/filetype.vim
--- a/runtime/filetype.vim      Sat Aug 30 18:10:19 2014 +0200
+++ b/runtime/filetype.vim      Fri Sep 05 09:41:00 2014 -0400
@@ -1104,6 +1104,9 @@
 " Lua
 au BufNewFile,BufRead *.lua                    setf lua

+" LuaRocks rockspec
+au BufNewFile,BufRead *.rockspec       setf lua
+
 " Linden Scripting Language (Second Life)
 au BufNewFile,BufRead *.lsl                    setf lsl

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui