7
|
1 " Vim syntax file
|
|
2 " Language: libao configuration file
|
|
3 " Maintainer: Nikolai Weibull <source@pcppopper.org>
|
|
4 " URL: http://www.pcppopper.org/vim/syntax/pcp/libao/
|
|
5 " Latest Revision: 2004-05-22
|
|
6 " arch-tag: 4ddef0a8-6817-4555-a5a1-0be82094053d
|
|
7
|
|
8 if version < 600
|
|
9 syntax clear
|
|
10 elseif exists("b:current_syntax")
|
|
11 finish
|
|
12 endif
|
|
13
|
|
14 " Todo
|
|
15 syn keyword libaoTodo contained TODO FIXME XXX NOTE
|
|
16
|
|
17 " Comments
|
|
18 syn region libaoComment matchgroup=libaoComment start='^\s*#' end='$' contains=libaoTodo
|
|
19
|
|
20 " Keywords
|
|
21 syn keyword libaoKeyword default_driver
|
|
22
|
|
23 " Define the default highlighting.
|
|
24 " For version 5.7 and earlier: only when not done already
|
|
25 " For version 5.8 and later: only when an item doesn't have highlighting yet
|
|
26 if version >= 508 || !exists("did_libao_syn_inits")
|
|
27 if version < 508
|
|
28 let did_libao_syn_inits = 1
|
|
29 command -nargs=+ HiLink hi link <args>
|
|
30 command -nargs=+ HiDef hi <args>
|
|
31 else
|
|
32 command -nargs=+ HiLink hi def link <args>
|
|
33 command -nargs=+ HiDef hi def <args>
|
|
34 endif
|
|
35
|
|
36 HiLink libaoTodo Todo
|
|
37 HiLink libaoComment Comment
|
|
38 HiLink libaoKeyword Keyword
|
|
39
|
|
40 delcommand HiLink
|
|
41 delcommand HiDef
|
|
42 endif
|
|
43
|
|
44 let b:current_syntax = "libao"
|
|
45
|
|
46 " vim: set sts=2 sw=2:
|