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