2 " Language: valgrind massif outputs
4 " Quit when a (custom) syntax file was already loaded
5 if exists("b:current_syntax")
9 syn region massifStanza start=/^== \d* ===*$/ end=/^==/
10 \ contains=massifHead,massifResult,massifSpecLine,massifSep
12 syn region massifHead contained start=/^==/ end=/==$/ contains=massifSection
13 syn match massifSection /\d\+/ contained
14 syn match massifSep /^--*$/ contained
15 syn match massifSpecLine /^[A-Z].*$/ contained contains=massifRate
17 syn region massifResult contained start=/^\s*\d\+/ end=/$/
18 \ contains=massifFile,massifFunc,massifRate,massifAddr
20 syn match massifRate "\d\+\(\.\d\+\)\?%" contained
21 syn match massifAddr "0x[0-9A-Fa-f]*" contained
22 syn match massifFile "\((\)\@<=.*:\d\+\()\)\@=" contained
24 hi def link massifHead Type
25 hi def link massifSection Normal
26 hi def link massifSep Comment
27 hi def link massifFile Statement
28 hi def link massifSpecLine Type
30 hi def link massifRate Constant
31 hi def link massifAddr NonText
33 let b:current_syntax = "massif"