1" Vim syntax file 2" This is a GENERATED FILE. Please always refer to source file at the URI below. 3" Language: strace output 4" Maintainer: David Necas (Yeti) <[email protected]> 5" Last Change: 2015-01-16 6 7" Setup 8if version >= 600 9 if exists("b:current_syntax") 10 finish 11 endif 12else 13 syntax clear 14endif 15 16syn case match 17 18" Parse the line 19syn match straceSpecialChar "\\\o\{1,3}\|\\." contained 20syn region straceString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=straceSpecialChar oneline 21syn match straceNumber "\W[+-]\=\(\d\+\)\=\.\=\d\+\([eE][+-]\=\d\+\)\="lc=1 22syn match straceNumber "\W0x\x\+"lc=1 23syn match straceNumberRHS "\W\(0x\x\+\|-\=\d\+\)"lc=1 contained 24syn match straceOtherRHS "?" contained 25syn match straceConstant "[A-Z_]\{2,}" 26syn region straceVerbosed start="(" end=")" matchgroup=Normal contained oneline 27syn region straceReturned start="\s=\s" end="$" contains=StraceEquals,straceNumberRHS,straceOtherRHS,straceConstant,straceVerbosed oneline transparent 28syn match straceEquals "\s=\s"ms=s+1,me=e-1 29syn match straceParenthesis "[][(){}]" 30syn match straceSysCall "^\w\+" 31syn match straceOtherPID "^\[[^]]*\]" contains=stracePID,straceNumber nextgroup=straceSysCallEmbed skipwhite 32syn match straceSysCallEmbed "\w\+" contained 33syn keyword stracePID pid contained 34syn match straceOperator "[-+=*/!%&|:,]" 35syn region straceComment start="/\*" end="\*/" oneline 36 37" Define the default highlighting 38if version >= 508 || !exists("did_strace_syntax_inits") 39 if version < 508 40 let did_strace_syntax_inits = 1 41 command -nargs=+ HiLink hi link <args> 42 else 43 command -nargs=+ HiLink hi def link <args> 44 endif 45 46 HiLink straceComment Comment 47 HiLink straceVerbosed Comment 48 HiLink stracePID PreProc 49 HiLink straceNumber Number 50 HiLink straceNumberRHS Type 51 HiLink straceOtherRHS Type 52 HiLink straceString String 53 HiLink straceConstant Function 54 HiLink straceEquals Type 55 HiLink straceSysCallEmbed straceSysCall 56 HiLink straceSysCall Statement 57 HiLink straceParenthesis Statement 58 HiLink straceOperator Normal 59 HiLink straceSpecialChar Special 60 HiLink straceOtherPID PreProc 61 62 delcommand HiLink 63endif 64 65let b:current_syntax = "strace" 66