annotate runtime/syntax/valgrind.vim @ 11177:76fb679a310e v8.0.0475

patch 8.0.0475: not enough testing for the client-server feature commit https://github.com/vim/vim/commit/7416f3e73ab2c4e7ae3adc2ff6e70234f7d40d2e Author: Bram Moolenaar <Bram@vim.org> Date: Sat Mar 18 18:10:13 2017 +0100 patch 8.0.0475: not enough testing for the client-server feature Problem: Not enough testing for the client-server feature. Solution: Add more tests. Add the remote_startserver() function. Fix that a locally evaluated expression uses function-local variables.
author Christian Brabandt <cb@256bit.org>
date Sat, 18 Mar 2017 18:15:04 +0100
parents b0a227941705
children 2704c4e3e20a
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/
6583
b0a227941705 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6259
diff changeset
5 " Last Change: 2015 Jan 27
b0a227941705 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6259
diff changeset
6 " Included improvement by Dominique Pelle
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " Notes: mostly based on strace.vim and xml.vim
6259
bd18da914be9 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3496
diff changeset
9 "
bd18da914be9 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3496
diff changeset
10 " Contributors: Christoph Gysin <christoph.gysin@gmail.com>
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 " Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 if exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 endif
3496
d1e4abe8342c Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
16 let s:keepcpo= &cpo
d1e4abe8342c Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
17 set cpo&vim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18
6583
b0a227941705 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6259
diff changeset
19 " Lines can be long with demangled c++ functions.
b0a227941705 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6259
diff changeset
20 setlocal synmaxcol=8000
b0a227941705 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6259
diff changeset
21
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn case match
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn sync minlines=50
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn match valgrindSpecLine "^[+-]\{2}\d\+[+-]\{2}.*$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn region valgrindRegion
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 \ start=+^==\z(\d\+\)== \w.*$+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 \ skip=+^==\z1==\( \| .*\)$+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 \ end=+^+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 \ fold
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 \ keepend
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 \ contains=valgrindPidChunk,valgrindLine
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn region valgrindPidChunk
6583
b0a227941705 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6259
diff changeset
36 \ start=+^==\zs+
b0a227941705 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6259
diff changeset
37 \ end=+\ze==+
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 \ contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 \ contains=valgrindPid0,valgrindPid1,valgrindPid2,valgrindPid3,valgrindPid4,valgrindPid5,valgrindPid6,valgrindPid7,valgrindPid8,valgrindPid9
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 \ keepend
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn match valgrindPid0 "\d\+0=" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 syn match valgrindPid1 "\d\+1=" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn match valgrindPid2 "\d\+2=" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn match valgrindPid3 "\d\+3=" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn match valgrindPid4 "\d\+4=" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 syn match valgrindPid5 "\d\+5=" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syn match valgrindPid6 "\d\+6=" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 syn match valgrindPid7 "\d\+7=" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 syn match valgrindPid8 "\d\+8=" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 syn match valgrindPid9 "\d\+9=" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 syn region valgrindLine
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 \ start=+\(^==\d\+== \)\@<=+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 \ end=+$+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 \ keepend
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 \ contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 \ contains=valgrindOptions,valgrindMsg,valgrindLoc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 syn match valgrindOptions "[ ]\{3}-.*$" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 syn match valgrindMsg "\S.*$" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 \ contains=valgrindError,valgrindNote,valgrindSummary
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 syn match valgrindError "\(Invalid\|\d\+ errors\|.* definitely lost\).*$" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 syn match valgrindNote ".*still reachable.*" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 syn match valgrindSummary ".*SUMMARY:" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 syn match valgrindLoc "\s\+\(by\|at\|Address\).*$" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 \ contains=valgrindAt,valgrindAddr,valgrindFunc,valgrindBin,valgrindSrc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 syn match valgrindAt "at\s\@=" contained
6583
b0a227941705 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6259
diff changeset
71 syn match valgrindAddr "\W\zs0x\x\+" contained
b0a227941705 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6259
diff changeset
72
b0a227941705 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6259
diff changeset
73 syn match valgrindFunc ": \zs\h[a-zA-Z0-9_:\[\]()<>&*+\-,=%!|^ ]*\ze([^)]*)$" contained
b0a227941705 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6259
diff changeset
74 syn match valgrindBin "(\(with\)\=in \zs\S\+)\@=" contained
b0a227941705 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6259
diff changeset
75 syn match valgrindSrc "(\zs[^)]*:\d\+)\@=" contained
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 " Define the default highlighting
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 hi def link valgrindSpecLine Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 "hi def link valgrindRegion Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 hi def link valgrindPid0 Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 hi def link valgrindPid1 Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 hi def link valgrindPid2 Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 hi def link valgrindPid3 Constant
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 hi def link valgrindPid4 Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 hi def link valgrindPid5 Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 hi def link valgrindPid6 Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 hi def link valgrindPid7 Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 hi def link valgrindPid8 LineNr
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 hi def link valgrindPid9 Normal
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 "hi def link valgrindLine Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 hi def link valgrindOptions Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 "hi def link valgrindMsg Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 "hi def link valgrindLoc Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 hi def link valgrindError Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 hi def link valgrindNote Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 hi def link valgrindSummary Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102 hi def link valgrindAt Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103 hi def link valgrindAddr Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104 hi def link valgrindFunc Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105 hi def link valgrindBin Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 hi def link valgrindSrc Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108 let b:current_syntax = "valgrind"
3496
d1e4abe8342c Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
109
d1e4abe8342c Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
110 let &cpo = s:keepcpo
d1e4abe8342c Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
111 unlet s:keepcpo