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) <yeti@physics.muni.cz>
5 " Last Change: 2002-10-10
6 " URL: http://trific.ath.cx/Ftp/vim/syntax/strace.vim
10 if exists("b:current_syntax")
20 syn match straceSpecialChar "\\\d\d\d\|\\." contained
21 syn region straceString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=straceSpecialChar oneline
22 syn match straceNumber "\W[+-]\=\(\d\+\)\=\.\=\d\+\([eE][+-]\=\d\+\)\="lc=1
23 syn match straceNumber "\W0x\x\+"lc=1
24 syn match straceNumberRHS "\W\(0x\x\+\|-\=\d\+\)"lc=1 contained
25 syn match straceOtherRHS "?" contained
26 syn match straceConstant "[A-Z_]\{2,}"
27 syn region straceVerbosed start="(" end=")" matchgroup=Normal contained oneline
28 syn region straceReturned start="\s=\s" end="$" contains=StraceEquals,straceNumberRHS,straceOtherRHS,straceConstant,straceVerbosed oneline transparent
29 syn match straceEquals "\s=\s"ms=s+1,me=e-1
30 syn match straceParenthesis "[][(){}]"
31 syn match straceSysCall "^\w\+"
32 syn match straceOtherPID "^\[[^]]*\]" contains=stracePID,straceNumber nextgroup=straceSysCallEmbed skipwhite
33 syn match straceSysCallEmbed "\w\+" contained
34 syn keyword stracePID pid contained
35 syn match straceOperator "[-+=*/!%&|:,]"
36 syn region straceComment start="/\*" end="\*/" oneline
38 " Define the default highlighting
39 if version >= 508 || !exists("did_strace_syntax_inits")
41 let did_strace_syntax_inits = 1
42 command -nargs=+ HiLink hi link <args>
44 command -nargs=+ HiLink hi def link <args>
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
66 let b:current_syntax = "strace"