Bug#309859: please add simple patch for automatic lua syntax highlighting
   
    Greg Orlowski
     
    Greg Orlowski <greg.orlowski@gmail.com>, 309859@bugs.debian.org
       
    Fri, 20 May 2005 00:41:02 -0400
    
    
  
Package: vim-common
Version: 6.3-071+1
The current scripts.vim file (/usr/share/vim/vim63/scripts.vim), which
is used to detect a script's filetype when vim is launched, has no
entry for the lua language.
Here's the entry for perl (lines 89,91 in my file):
    " Perl
  elseif s:name =3D~ 'perl'
    set ft=3Dperl=20
   =20
Please add an entry like this for lua. The names are SOMEWHAT
alphabetized, but not really, so you can add it directly before perl
if you want.
"""""------CLIP (Here's the entry I added, just add the below 3 lines
        " Lua
  elseif s:name =3D~ 'lua'
    set ft=3Dlua
"""""------CLIP
When this entry is added, syntax highlighting is automatically
detected for scripts that have something like:
#!/usr/bin/lua
as the shebang line. The lua.vim syntax highlighting definition file
already exists in the /syntax directory, but without the above entry
in scripts.vim, the filetype has to be set manually in vim for syntax
highlighting to work properly.
Thanks!
-Greg Orlowski