]> git.sesse.net Git - vlc/blobdiff - extras/vlc.vim
include/vlc/libvlc_structures.h: Fix build by using vlc_int64_t instead of uint64_t.
[vlc] / extras / vlc.vim
index dacaff579c1750fb6fe84e35b2817f947eebf917..e9f2471dac934261eed0e3ad02705e25b8e67930 100644 (file)
@@ -3,11 +3,11 @@ au Syntax c call VlcSyntax()
 au Syntax cpp call VlcSyntax()
 
 function VlcSyntax()
-  " Look for a VideoLAN copyright in the first 10 lines
+  " Look for a VideoLAN copyright in the first 15 lines
   let line=1
   let vlc=0
-  while(line<=10)
-    if matchend(getline(line), "Copyright.*VideoLAN") > -1
+  while(line<=15)
+    if matchend(getline(line), "Copyright.*VideoLAN( team)?") > -1
       let vlc=1
       break
     endif
@@ -21,7 +21,7 @@ function VlcSyntax()
   " return values
   syn keyword cConstant VLC_SUCCESS VLC_EGENERIC VLC_ENOMEM VLC_ETHREAD
   syn keyword cConstant VLC_ESTATUS VLC_EEXIT VLC_EMODULE VLC_EOBJECT
-  syn keyword cConstant VLC_ENOOBJ VLC_ENOMOD
+  syn keyword cConstant VLC_ENOOBJ VLC_ENOMOD VLC_VAR_ADDRESS
   " custom types
   syn keyword cType vlc_fixed_t mtime_t byte_t dctelem_t count_t ssize_t off_t
   syn keyword cType vlc_bool_t vlc_fourcc_t vlc_value_t
@@ -113,5 +113,8 @@ function VlcSyntax()
   " don't put trailing spaces! DON'T USE TABS!!!
   syn match cSpaceError display excludenl "\s\+$"
   syn match cSpaceError display "\t"
+
+  " Todo
+  syn keyword cTodo    contained TODO FIXME XXX \todo \bug
 endfun