Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gentoo-syntax:master commit in: syntax/
Date: Sun, 20 Feb 2022 16:03:12
Message-Id: 1645372794.b45300366c9dde34326336277687e28ce5568982.mgorny@gentoo
1 commit: b45300366c9dde34326336277687e28ce5568982
2 Author: Anna “CyberTailor” <cyber <AT> sysrq <DOT> in>
3 AuthorDate: Thu Feb 17 16:54:46 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 20 15:59:54 2022 +0000
6 URL: https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=b4530036
7
8 syntax/gentoo-make-conf: add ALLOW_TEST
9
10 Signed-off-by: Anna Vyalkova <cyber+gentoo <AT> sysrq.in>
11 Closes: https://github.com/gentoo/gentoo-syntax/pull/43
12 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
13
14 syntax/gentoo-make-conf.vim | 16 +++++++++++++++-
15 1 file changed, 15 insertions(+), 1 deletion(-)
16
17 diff --git a/syntax/gentoo-make-conf.vim b/syntax/gentoo-make-conf.vim
18 index e2d9db4..b37dee3 100644
19 --- a/syntax/gentoo-make-conf.vim
20 +++ b/syntax/gentoo-make-conf.vim
21 @@ -17,7 +17,7 @@ endif
22
23 runtime syntax/gentoo-common.vim
24
25 -syn cluster GentooMakeConfEC add=GentooMakeConfEUse,GentooMakeConfEAK,GentooMakeConfEAL,GentooMakeConfEAP,GentooMakeConfECFLAGS,GentooMakeConfELDFLAGS,GentooMakeConfEMAKEOPTS,GentooMakeConfECHOST,GentooMakeConfEFEATURES,GentooMakeConfEMISC,GentooMakeConfEMISCK,GentooMakeConfEMISCKE,GentooMakeConfEMISCN
26 +syn cluster GentooMakeConfEC add=GentooMakeConfEUse,GentooMakeConfEAK,GentooMakeConfEAL,GentooMakeConfEAP,GentooMakeConfEAT,GentooMakeConfECFLAGS,GentooMakeConfELDFLAGS,GentooMakeConfEMAKEOPTS,GentooMakeConfECHOST,GentooMakeConfEFEATURES,GentooMakeConfEMISC,GentooMakeConfEMISCK,GentooMakeConfEMISCKE,GentooMakeConfEMISCN
27 syn region GentooMakeConfE start=/^/ end=/$/ contains=@GentooMakeConfEC,GentooMakeConfComment
28
29 " MISC {{{
30 @@ -118,6 +118,20 @@ hi def link GentooMakeConfEAPIN Error
31 hi def link GentooMakeConfEAPIX Preproc
32 " }}}
33
34 +" ALLOW_TEST {{{
35 +syn match GentooMakeConfEAT /ALLOW_TEST/ contained nextgroup=GentooMakeConfEATE
36 +syn match GentooMakeConfEATE /=/ contained nextgroup=GentooMakeConfEATV skipwhite
37 +syn cluster GentooMakeConfEATIC add=GentooMakeConfEATIP,GentooMakeConfEATIX
38 +syn region GentooMakeConfEATV contained start=/"/ end=/"/ contains=@GentooMakeConfEATIC
39 +syn match GentooMakeConfEATIP /\s*\(network\|all\)\s*/ contained
40 +syn match GentooMakeConfEATIX /\\.\|\$\({[^}]\+}\|[a-zA-Z0-9\-\_]\+\)/ contained
41 +
42 +hi def link GentooMakeConfEAT Identifier
43 +hi def link GentooMakeConfEATV String
44 +hi def link GentooMakeConfEATIP Keyword
45 +hi def link GentooMakeConfEATIX Preproc
46 +" }}}
47 +
48 " C*FLAGS and F*FLAGS {{{
49 syn match GentooMakeConfECFLAGS /C\(XX\)\?FLAGS/ contained nextgroup=GentooMakeConfECFLAGSE
50 syn match GentooMakeConfECFLAGS /FC\?FLAGS/ contained nextgroup=GentooMakeConfECFLAGSE