annotate runtime/syntax/valgrind.vim @ 6367:81c9b19ee0fb v7.4.516

updated for version 7.4.516 Problem: Completing a function name containing a # does not work. Issue 253. Solution: Recognize the # character. (Christian Brabandt)
author Bram Moolenaar <bram@vim.org>
date Wed, 12 Nov 2014 20:09:06 +0100
parents bd18da914be9
children b0a227941705
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: Valgrind Memory Debugger Output
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Roger Luethi <rl@hellgate.ch>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " Program URL: http://devel-home.kde.org/~sewardj/
6259
bd18da914be9 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3496
diff changeset
5 " Last Change: 2014 Oct 02
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " Notes: mostly based on strace.vim and xml.vim
6259
bd18da914be9 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3496
diff changeset
8 "
bd18da914be9 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3496
diff changeset
9 " Contributors: Christoph Gysin <christoph.gysin@gmail.com>
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 " Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 if exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 endif
3496
d1e4abe8342c Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
15 let s:keepcpo= &cpo
d1e4abe8342c Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
16 set cpo&vim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 syn case match
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 syn sync minlines=50
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn match valgrindSpecLine "^[+-]\{2}\d\+[+-]\{2}.*$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn region valgrindRegion
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 \ start=+^==\z(\d\+\)== \w.*$+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 \ skip=+^==\z1==\( \| .*\)$+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 \ end=+^+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 \ fold
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 \ keepend
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 \ contains=valgrindPidChunk,valgrindLine
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn region valgrindPidChunk
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 \ start=+\(^==\)\@<=+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 \ end=+\(==\)\@=+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 \ contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 \ contains=valgrindPid0,valgrindPid1,valgrindPid2,valgrindPid3,valgrindPid4,valgrindPid5,valgrindPid6,valgrindPid7,valgrindPid8,valgrindPid9
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 \ keepend
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn match valgrindPid0 "\d\+0=" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn match valgrindPid1 "\d\+1=" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn match valgrindPid2 "\d\+2=" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn match valgrindPid3 "\d\+3=" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn match valgrindPid4 "\d\+4=" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 syn match valgrindPid5 "\d\+5=" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn match valgrindPid6 "\d\+6=" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn match valgrindPid7 "\d\+7=" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn match valgrindPid8 "\d\+8=" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 syn match valgrindPid9 "\d\+9=" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 syn region valgrindLine
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 \ start=+\(^==\d\+== \)\@<=+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 \ end=+$+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 \ keepend
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 \ contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 \ contains=valgrindOptions,valgrindMsg,valgrindLoc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 syn match valgrindOptions "[ ]\{3}-.*$" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 syn match valgrindMsg "\S.*$" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 \ contains=valgrindError,valgrindNote,valgrindSummary
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 syn match valgrindError "\(Invalid\|\d\+ errors\|.* definitely lost\).*$" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 syn match valgrindNote ".*still reachable.*" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 syn match valgrindSummary ".*SUMMARY:" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 syn match valgrindLoc "\s\+\(by\|at\|Address\).*$" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 \ contains=valgrindAt,valgrindAddr,valgrindFunc,valgrindBin,valgrindSrc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 syn match valgrindAt "at\s\@=" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 syn match valgrindAddr "\(\W\)\@<=0x\x\+" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 syn match valgrindFunc "\(: \)\@<=\w\+" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 syn match valgrindBin "\((\(with\|\)in \)\@<=\S\+\()\)\@=" contained
6259
bd18da914be9 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3496
diff changeset
70 syn match valgrindSrc "\((\)\@<=[^)]*:\d\+\()\)\@=" contained
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 " Define the default highlighting
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 hi def link valgrindSpecLine Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 "hi def link valgrindRegion Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 hi def link valgrindPid0 Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 hi def link valgrindPid1 Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 hi def link valgrindPid2 Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 hi def link valgrindPid3 Constant
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 hi def link valgrindPid4 Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 hi def link valgrindPid5 Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 hi def link valgrindPid6 Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 hi def link valgrindPid7 Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 hi def link valgrindPid8 LineNr
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 hi def link valgrindPid9 Normal
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 "hi def link valgrindLine Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 hi def link valgrindOptions Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 "hi def link valgrindMsg Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 "hi def link valgrindLoc Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 hi def link valgrindError Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 hi def link valgrindNote Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 hi def link valgrindSummary Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 hi def link valgrindAt Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 hi def link valgrindAddr Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 hi def link valgrindFunc Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 hi def link valgrindBin Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 hi def link valgrindSrc Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103 let b:current_syntax = "valgrind"
3496
d1e4abe8342c Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
104
d1e4abe8342c Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
105 let &cpo = s:keepcpo
d1e4abe8342c Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
106 unlet s:keepcpo