annotate runtime/syntax/strace.vim @ 2642:840c3cadb842

Updated runtime files.
author Bram Moolenaar <bram@vim.org>
date Tue, 16 Nov 2010 20:34:40 +0100
parents 3fc0f57ecb91
children 435956324539
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 " This is a GENERATED FILE. Please always refer to source file at the URI below.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Language: strace output
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " Maintainer: David Ne\v{c}as (Yeti) <yeti@physics.muni.cz>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " Last Change: 2002-10-10
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " URL: http://trific.ath.cx/Ftp/vim/syntax/strace.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " Setup
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 if version >= 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 if exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 syn case match
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 " Parse the line
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn match straceSpecialChar "\\\d\d\d\|\\." contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn region straceString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=straceSpecialChar oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn match straceNumber "\W[+-]\=\(\d\+\)\=\.\=\d\+\([eE][+-]\=\d\+\)\="lc=1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn match straceNumber "\W0x\x\+"lc=1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn match straceNumberRHS "\W\(0x\x\+\|-\=\d\+\)"lc=1 contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn match straceOtherRHS "?" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn match straceConstant "[A-Z_]\{2,}"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn region straceVerbosed start="(" end=")" matchgroup=Normal contained oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn region straceReturned start="\s=\s" end="$" contains=StraceEquals,straceNumberRHS,straceOtherRHS,straceConstant,straceVerbosed oneline transparent
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn match straceEquals "\s=\s"ms=s+1,me=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn match straceParenthesis "[][(){}]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn match straceSysCall "^\w\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn match straceOtherPID "^\[[^]]*\]" contains=stracePID,straceNumber nextgroup=straceSysCallEmbed skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn match straceSysCallEmbed "\w\+" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn keyword stracePID pid contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn match straceOperator "[-+=*/!%&|:,]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn region straceComment start="/\*" end="\*/" oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 " Define the default highlighting
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 if version >= 508 || !exists("did_strace_syntax_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 let did_strace_syntax_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 HiLink straceComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 HiLink straceVerbosed Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 HiLink stracePID PreProc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 HiLink straceNumber Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 HiLink straceNumberRHS Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 HiLink straceOtherRHS Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 HiLink straceString String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 HiLink straceConstant Function
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 HiLink straceEquals Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 HiLink straceSysCallEmbed straceSysCall
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 HiLink straceSysCall Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 HiLink straceParenthesis Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 HiLink straceOperator Normal
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 HiLink straceSpecialChar Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 HiLink straceOtherPID PreProc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 let b:current_syntax = "strace"