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
" 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
" 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