updated for version 7.0016
This commit is contained in:
72
runtime/syntax/alsaconf.vim
Normal file
72
runtime/syntax/alsaconf.vim
Normal file
@ -0,0 +1,72 @@
|
||||
" Vim syntax file
|
||||
" Language: ALSA configuration file
|
||||
" Maintainer: Nikolai Weibull <source@pcppopper.org>
|
||||
" URL: http://www.pcppopper.org/
|
||||
" Latest Revision: 2004-09-10
|
||||
" arch-tag: 3e06fe53-28d5-44a1-871d-279f22e7aed4
|
||||
|
||||
if version < 600
|
||||
syntax clear
|
||||
elseif exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
" todo
|
||||
syn keyword alsoconfTodo contained FIXME TODO XXX NOTE
|
||||
|
||||
" comments
|
||||
syn region alsaconfComment matchgroup=alsaconfComment start="#" end="$"
|
||||
\ contains=alsaconfTodo
|
||||
|
||||
" special characters
|
||||
syn match alsaconfSpecialChar contained "\\[ntvbrf]"
|
||||
syn match alsaconfSpecialChar contained "\\\o\+"
|
||||
|
||||
" strings
|
||||
syn region alsaconfString matchgroup=alsaconfString start=+"+ skip=+\\$+
|
||||
\ end=+"+ end=+$+ contains=alsaconfSpecialChar
|
||||
|
||||
" preprocessor special
|
||||
syn match alsaconfSpecial contained "confdir:"
|
||||
|
||||
" preprocessor
|
||||
syn region alsaconfPreProc matchgroup=alsaconfPreProc start="<" end=">"
|
||||
\ contains=alsaconfSpecial
|
||||
|
||||
" modes
|
||||
syn match alsaconfMode "[+?!-]"
|
||||
|
||||
" keywords
|
||||
syn keyword alsaconfKeyword card default device errors files func strings
|
||||
syn keyword alsaconfKeyword subdevice type vars
|
||||
|
||||
" variables
|
||||
syn match alsaconfVariables "@\(hooks\|func\|args\)"
|
||||
|
||||
" Define the default highlighting.
|
||||
" For version 5.7 and earlier: only when not done already
|
||||
" For version 5.8 and later: only when an item doesn't have highlighting yet
|
||||
if version >= 508 || !exists("did_alsaconf_syn_inits")
|
||||
if version < 508
|
||||
let did_dircolors_syn_inits = 1
|
||||
command -nargs=+ HiLink hi link <args>
|
||||
else
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
endif
|
||||
|
||||
HiLink alsoconfTodo Todo
|
||||
HiLink alsaconfComment Comment
|
||||
HiLink alsaconfSpecialChar SpecialChar
|
||||
HiLink alsaconfString String
|
||||
HiLink alsaconfSpecial Special
|
||||
HiLink alsaconfPreProc PreProc
|
||||
HiLink alsaconfMode Special
|
||||
HiLink alsaconfKeyword Keyword
|
||||
HiLink alsaconfVariables Identifier
|
||||
|
||||
delcommand HiLink
|
||||
endif
|
||||
|
||||
let b:current_syntax = "alsaconf"
|
||||
|
||||
" vim: set sts=2 sw=2:
|
||||
@ -1,7 +1,7 @@
|
||||
" Language : Netrw Remote-Directory Listing Syntax
|
||||
" Maintainer : Charles E. Campbell, Jr.
|
||||
" Last change: Aug 20, 2004
|
||||
" Version : 4
|
||||
" Last change: Sep 08, 2004
|
||||
" Version : 5
|
||||
" ---------------------------------------------------------------------
|
||||
|
||||
" Syntax Clearing: {{{1
|
||||
@ -18,7 +18,7 @@ syn match netrwDir "^.*/\%(\t\|$\)" contains=netrwClassify
|
||||
syn match netrwClassify "[*=|@/]\%(\t\|$\)"
|
||||
syn match netrwSymLink "^.*@\%(\t\|$\)" contains=netrwClassify
|
||||
syn match netrwComment '".*\%(\t\|$\)' contains=@NetrwGroup
|
||||
syn match netrwHide '^"\s*Hiding:' skipwhite nextgroup=netrwHidePat
|
||||
syn match netrwHide '^"\s*\(Hid\|Show\)ing:' skipwhite nextgroup=netrwHidePat
|
||||
syn match netrwSlash contained "/"
|
||||
syn match netrwHidePat contained "[^,]\+" skipwhite nextgroup=netrwHideSep
|
||||
syn match netrwHideSep contained transparent "," skipwhite nextgroup=netrwHidePat
|
||||
|
||||
Reference in New Issue
Block a user