annotate runtime/syntax/strace.vim @ 9543:69b7bcb20b05

Added tag v7.4.2051 for changeset 00ee8d8c2e0cd4446294c06b8a5608face5d4617
author Christian Brabandt <cb@256bit.org>
date Sat, 16 Jul 2016 20:00:06 +0200
parents 435956324539
children 43efa4f5a8ea
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
6530
435956324539 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
4 " Maintainer: David Necas (Yeti) <yeti@physics.muni.cz>
435956324539 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
5 " Last Change: 2015-01-16
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " Setup
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 if version >= 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 if exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 syn case match
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 " Parse the line
6530
435956324539 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
19 syn match straceSpecialChar "\\\o\{1,3}\|\\." contained
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn region straceString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=straceSpecialChar oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn match straceNumber "\W[+-]\=\(\d\+\)\=\.\=\d\+\([eE][+-]\=\d\+\)\="lc=1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn match straceNumber "\W0x\x\+"lc=1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn match straceNumberRHS "\W\(0x\x\+\|-\=\d\+\)"lc=1 contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn match straceOtherRHS "?" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn match straceConstant "[A-Z_]\{2,}"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn region straceVerbosed start="(" end=")" matchgroup=Normal contained oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 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
28 syn match straceEquals "\s=\s"ms=s+1,me=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn match straceParenthesis "[][(){}]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn match straceSysCall "^\w\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn match straceOtherPID "^\[[^]]*\]" contains=stracePID,straceNumber nextgroup=straceSysCallEmbed skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn match straceSysCallEmbed "\w\+" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn keyword stracePID pid contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn match straceOperator "[-+=*/!%&|:,]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn region straceComment start="/\*" end="\*/" oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 " Define the default highlighting
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 if version >= 508 || !exists("did_strace_syntax_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 let did_strace_syntax_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 HiLink straceComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 HiLink straceVerbosed Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 HiLink stracePID PreProc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 HiLink straceNumber Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 HiLink straceNumberRHS Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 HiLink straceOtherRHS Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 HiLink straceString String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 HiLink straceConstant Function
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 HiLink straceEquals Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 HiLink straceSysCallEmbed straceSysCall
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 HiLink straceSysCall Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 HiLink straceParenthesis Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 HiLink straceOperator Normal
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 HiLink straceSpecialChar Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 HiLink straceOtherPID PreProc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 let b:current_syntax = "strace"