Mercurial > vim
annotate runtime/syntax/strace.vim @ 26135:7922e1972d58 v8.2.3600
patch 8.2.3600: filetype test fails
Commit: https://github.com/vim/vim/commit/314b773abbb9b1ce0020d83482c6daf7ad6a42a2
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Nov 16 11:53:13 2021 +0000
patch 8.2.3600: filetype test fails
Problem: Filetype test fails.
Solution: Add missint change.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 16 Nov 2021 13:00:05 +0100 |
parents | 46763b01cd9a |
children | 5825405e4e2c |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
2 " This is a GENERATED FILE. Please always refer to source file at the URI below. | |
3 " Language: strace output | |
6530 | 4 " Maintainer: David Necas (Yeti) <yeti@physics.muni.cz> |
5 " Last Change: 2015-01-16 | |
7 | 6 |
7 " Setup | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
6530
diff
changeset
|
8 " quit when a syntax file was already loaded |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
6530
diff
changeset
|
9 if exists("b:current_syntax") |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
6530
diff
changeset
|
10 finish |
7 | 11 endif |
12 | |
13 syn case match | |
14 | |
15 " Parse the line | |
6530 | 16 syn match straceSpecialChar "\\\o\{1,3}\|\\." contained |
7 | 17 syn region straceString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=straceSpecialChar oneline |
18 syn match straceNumber "\W[+-]\=\(\d\+\)\=\.\=\d\+\([eE][+-]\=\d\+\)\="lc=1 | |
19 syn match straceNumber "\W0x\x\+"lc=1 | |
20 syn match straceNumberRHS "\W\(0x\x\+\|-\=\d\+\)"lc=1 contained | |
21 syn match straceOtherRHS "?" contained | |
22 syn match straceConstant "[A-Z_]\{2,}" | |
23 syn region straceVerbosed start="(" end=")" matchgroup=Normal contained oneline | |
24 syn region straceReturned start="\s=\s" end="$" contains=StraceEquals,straceNumberRHS,straceOtherRHS,straceConstant,straceVerbosed oneline transparent | |
25 syn match straceEquals "\s=\s"ms=s+1,me=e-1 | |
26 syn match straceParenthesis "[][(){}]" | |
27 syn match straceSysCall "^\w\+" | |
28 syn match straceOtherPID "^\[[^]]*\]" contains=stracePID,straceNumber nextgroup=straceSysCallEmbed skipwhite | |
29 syn match straceSysCallEmbed "\w\+" contained | |
30 syn keyword stracePID pid contained | |
31 syn match straceOperator "[-+=*/!%&|:,]" | |
32 syn region straceComment start="/\*" end="\*/" oneline | |
33 | |
34 " Define the default highlighting | |
35 | |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
36 hi def link straceComment Comment |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
37 hi def link straceVerbosed Comment |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
38 hi def link stracePID PreProc |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
39 hi def link straceNumber Number |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
40 hi def link straceNumberRHS Type |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
41 hi def link straceOtherRHS Type |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
42 hi def link straceString String |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
43 hi def link straceConstant Function |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
44 hi def link straceEquals Type |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
45 hi def link straceSysCallEmbed straceSysCall |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
46 hi def link straceSysCall Statement |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
47 hi def link straceParenthesis Statement |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
48 hi def link straceOperator Normal |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
49 hi def link straceSpecialChar Special |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
50 hi def link straceOtherPID PreProc |
7 | 51 |
52 | |
53 let b:current_syntax = "strace" |