1620
|
1 " Language: D script as described in "Solaris Dynamic Tracing Guide",
|
|
2 " http://docs.sun.com/app/docs/doc/817-6223
|
|
3 " Last Change: 2008/03/20
|
|
4 " Version: 1.2
|
|
5 " Maintainer: Nicolas Weber <nicolasweber@gmx.de>
|
|
6
|
|
7 " Only do this when not done yet for this buffer
|
|
8 if exists("b:did_ftplugin")
|
|
9 finish
|
|
10 endif
|
|
11
|
|
12 " Don't load another plugin for this buffer
|
|
13 let b:did_ftplugin = 1
|
|
14
|
|
15 " Using line continuation here.
|
|
16 let s:cpo_save = &cpo
|
|
17 set cpo-=C
|
|
18
|
|
19 let b:undo_ftplugin = "setl fo< com< cms< isk<"
|
|
20
|
|
21 " Set 'formatoptions' to break comment lines but not other lines,
|
|
22 " and insert the comment leader when hitting <CR> or using "o".
|
|
23 setlocal fo-=t fo+=croql
|
|
24
|
|
25 " Set 'comments' to format dashed lists in comments.
|
|
26 setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/
|
|
27
|
|
28 " dtrace uses /* */ comments. Set this explicitly, just in case the user
|
|
29 " changed this (/*%s*/ is the default)
|
|
30 setlocal commentstring=/*%s*/
|
|
31
|
|
32 setlocal iskeyword+=@,$
|
|
33
|
|
34 " When the matchit plugin is loaded, this makes the % command skip parens and
|
|
35 " braces in comments.
|
|
36 let b:match_words = &matchpairs
|
|
37 let b:match_skip = 's:comment\|string\|character'
|
|
38
|
|
39 let &cpo = s:cpo_save
|
|
40 unlet s:cpo_save
|