" DBH syntax file
" Language: C dbh extension (for version 4.7.6)
" Maintainer: Edscott <edscott@xfce.org>
" Last Change: 2012-02-08
" URL: http://dbh.sourceforge.net/dbh-syntax.tar.gz
" Generated By: manual
" Options:
"    Deprecated declarations are not highlighted by default.
"    let dbh_enable_deprecated = 1
"       highlights deprecated declarations too (like normal declarations)
"    let dbh_deprecated_errors = 1
"       highlights deprecated declarations as Errors
" Easy usage:
"    copy to ~/.vim/syntax
"    ln -s dbh.vim c.vim
"    that's all folks!




syn keyword dbhFunction dbh_destroy dbh_exit_sweep dbh_exit_fanout dbh_close dbh_new dbh_erase dbh_unerase dbh_prune dbh_unprune dbh_find dbh_genkey dbh_genkey2 dbh_orderkey dbh_load dbh_load_address dbh_load_parent dbh_load_child dbh_regen_sweep dbh_regen_fanout dbh_settempdir dbh_set_data dbh_set_key dbh_set_size dbh_set_recordsize dbh_sweep dbh_fanout dbh_foreach_sweep dbh_foreach_fanout dbh_update dbh_writeheader dbh_clear_locks dbh_genkey0 dbh_info dbh_set_parallel_lock_attempt_limit dbh_sweep
syn keyword dbhTypedef dbh_header_t dbh_lock_t DBHashTable
syn keyword dbhConstant DBH_CREATE DBH_READ_ONLY DBH_THREAD_SAFE DBH_PARALLEL_SAFE
syn keyword dbhMacro DBH_VERSION DBH_FILE_VERSION FILE_POINTER DBH_KEYLENGTH  DBH_RECORD_SIZE DBH_KEY DBH_DATA DBH_ERASED_SPACE DBH_DATA_SPACE DBH_TOTAL_SPACE DBH_FORMAT_SPACE DBH_RECORDS DBH_MAXIMUM_RECORD_SIZE DBH_PATH
syn keyword dbhDeprecatedFunction dbh_create dbh_open dbh_open_ro

" Default highlighting
if version >= 508 || !exists("did_dbh_syntax_inits")
  if version < 508
    let did_dbh_syntax_inits = 1
    command -nargs=+ HiLink hi link <args>
  else
    command -nargs=+ HiLink hi def link <args>
  endif
  HiLink dbhFunction Function
  HiLink dbhTypedef Type
  HiLink dbhConstant Constant
  HiLink dbhMacro Macro
  HiLink dbhEnum Type
  HiLink dbhVariable Identifier
  HiLink dbhUserFunction Type
  HiLink dbhDefine Constant
  if exists("dbh_deprecated_errors")
    HiLink dbhDeprecatedFunction Error
  elseif exists("dbh_enable_deprecated")
    HiLink dbhDeprecatedFunction Function
  endif
  delcommand HiLink
endif


