annotate runtime/ftplugin/dtrace.vim @ 20180:6ac0d289f8e7

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