annotate runtime/syntax/pacmanlog.vim @ 34651:d299b4b3099f v9.1.0210

patch 9.1.0210: Motif: leaking memory when mui_mch_dialog() fails Commit: https://github.com/vim/vim/commit/9ccc2972373c8310c20ae7621b9c634d0dc43e26 Author: Christian Brabandt <cb@256bit.org> Date: Tue Mar 26 18:44:48 2024 +0100 patch 9.1.0210: Motif: leaking memory when mui_mch_dialog() fails Problem: Motif: leaking memory when mui_mch_dialog() fails (LuMingYinDetect) Solution: When allocating the label using the XmStringCreateLtoR() function fails, before returning also free the allocated buttons pointer. fixes: #14247 closes: #14280 Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Tue, 26 Mar 2024 19:00:03 +0100
parents eb3f61da6d5e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
33877
eb3f61da6d5e patch 9.0.2148: Vim does not detect pacman.log file
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
1 " Vim syntax file
eb3f61da6d5e patch 9.0.2148: Vim does not detect pacman.log file
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
2 " Language: pacman.log
eb3f61da6d5e patch 9.0.2148: Vim does not detect pacman.log file
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
3 " Maintainer: Ronan Pigott <ronan@rjp.ie>
eb3f61da6d5e patch 9.0.2148: Vim does not detect pacman.log file
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
4 " Last Change: 2023 Dec 04
eb3f61da6d5e patch 9.0.2148: Vim does not detect pacman.log file
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
5
eb3f61da6d5e patch 9.0.2148: Vim does not detect pacman.log file
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
6 if exists("b:current_syntax")
eb3f61da6d5e patch 9.0.2148: Vim does not detect pacman.log file
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
7 finish
eb3f61da6d5e patch 9.0.2148: Vim does not detect pacman.log file
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
8 endif
eb3f61da6d5e patch 9.0.2148: Vim does not detect pacman.log file
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
9
eb3f61da6d5e patch 9.0.2148: Vim does not detect pacman.log file
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
10 syn sync maxlines=1
eb3f61da6d5e patch 9.0.2148: Vim does not detect pacman.log file
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
11 syn region pacmanlogMsg start='\S' end='$' keepend contains=pacmanlogTransaction,pacmanlogALPMMsg
eb3f61da6d5e patch 9.0.2148: Vim does not detect pacman.log file
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
12 syn region pacmanlogTag start='\['hs=s+1 end='\]'he=e-1 keepend nextgroup=pacmanlogMsg
eb3f61da6d5e patch 9.0.2148: Vim does not detect pacman.log file
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
13 syn region pacmanlogTime start='^\['hs=s+1 end='\]'he=e-1 keepend nextgroup=pacmanlogTag
eb3f61da6d5e patch 9.0.2148: Vim does not detect pacman.log file
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
14
eb3f61da6d5e patch 9.0.2148: Vim does not detect pacman.log file
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
15 syn match pacmanlogPackageName '\v[a-z0-9@_+.-]+' contained skipwhite nextgroup=pacmanlogPackageVersion
eb3f61da6d5e patch 9.0.2148: Vim does not detect pacman.log file
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
16 syn match pacmanlogPackageVersion '(.*)' contained
eb3f61da6d5e patch 9.0.2148: Vim does not detect pacman.log file
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
17
eb3f61da6d5e patch 9.0.2148: Vim does not detect pacman.log file
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
18 syn match pacmanlogTransaction 'transaction \v(started|completed)$' contained
eb3f61da6d5e patch 9.0.2148: Vim does not detect pacman.log file
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
19 syn match pacmanlogInstalled '\v(re)?installed' contained nextgroup=pacmanlogPackageName
eb3f61da6d5e patch 9.0.2148: Vim does not detect pacman.log file
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
20 syn match pacmanlogUpgraded 'upgraded' contained nextgroup=pacmanlogPackageName
eb3f61da6d5e patch 9.0.2148: Vim does not detect pacman.log file
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
21 syn match pacmanlogDowngraded 'downgraded' contained nextgroup=pacmanlogPackageName
eb3f61da6d5e patch 9.0.2148: Vim does not detect pacman.log file
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
22 syn match pacmanlogRemoved 'removed' contained nextgroup=pacmanlogPackageName
eb3f61da6d5e patch 9.0.2148: Vim does not detect pacman.log file
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
23 syn match pacmanlogWarning 'warning:.*$' contained
eb3f61da6d5e patch 9.0.2148: Vim does not detect pacman.log file
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
24
eb3f61da6d5e patch 9.0.2148: Vim does not detect pacman.log file
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
25 syn region pacmanlogALPMMsg start='\v(\[ALPM\] )@<=(transaction|(re)?installed|upgraded|downgraded|removed|warning)>' end='$' contained
eb3f61da6d5e patch 9.0.2148: Vim does not detect pacman.log file
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
26 \ contains=pacmanlogTransaction,pacmanlogInstalled,pacmanlogUpgraded,pacmanlogDowngraded,pacmanlogRemoved,pacmanlogWarning,pacmanlogPackageName,pacmanlogPackgeVersion
eb3f61da6d5e patch 9.0.2148: Vim does not detect pacman.log file
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
27
eb3f61da6d5e patch 9.0.2148: Vim does not detect pacman.log file
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
28 hi def link pacmanlogTime String
eb3f61da6d5e patch 9.0.2148: Vim does not detect pacman.log file
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
29 hi def link pacmanlogTag Type
eb3f61da6d5e patch 9.0.2148: Vim does not detect pacman.log file
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
30
eb3f61da6d5e patch 9.0.2148: Vim does not detect pacman.log file
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
31 hi def link pacmanlogTransaction Special
eb3f61da6d5e patch 9.0.2148: Vim does not detect pacman.log file
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
32 hi def link pacmanlogInstalled Identifier
eb3f61da6d5e patch 9.0.2148: Vim does not detect pacman.log file
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
33 hi def link pacmanlogRemoved Repeat
eb3f61da6d5e patch 9.0.2148: Vim does not detect pacman.log file
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
34 hi def link pacmanlogUpgraded pacmanlogInstalled
eb3f61da6d5e patch 9.0.2148: Vim does not detect pacman.log file
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
35 hi def link pacmanlogDowngraded pacmanlogRemoved
eb3f61da6d5e patch 9.0.2148: Vim does not detect pacman.log file
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
36 hi def link pacmanlogWarning WarningMsg
eb3f61da6d5e patch 9.0.2148: Vim does not detect pacman.log file
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
37
eb3f61da6d5e patch 9.0.2148: Vim does not detect pacman.log file
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
38 hi def link pacmanlogPackageName Normal
eb3f61da6d5e patch 9.0.2148: Vim does not detect pacman.log file
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
39 hi def link pacmanlogPackageVersion Comment
eb3f61da6d5e patch 9.0.2148: Vim does not detect pacman.log file
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
40
eb3f61da6d5e patch 9.0.2148: Vim does not detect pacman.log file
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
41 let b:current_syntax = "pacmanlog"