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
5
" Maintainer: Nicolas Weber <nicolasweber@gmx.de>
7
" Only do this when not done yet for this buffer
8
if exists("b:did_ftplugin")
12
" Don't load another plugin for this buffer
13
let b:did_ftplugin = 1
15
" Using line continuation here.
19
let b:undo_ftplugin = "setl fo< com< cms< isk<"
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
25
" Set 'comments' to format dashed lists in comments.
26
setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/
28
" dtrace uses /* */ comments. Set this explicitly, just in case the user
29
" changed this (/*%s*/ is the default)
30
setlocal commentstring=/*%s*/
32
setlocal iskeyword+=@,$
34
" When the matchit plugin is loaded, this makes the % command skip parens and
36
let b:match_words = &matchpairs
37
let b:match_skip = 's:comment\|string\|character'