commit:     b45300366c9dde34326336277687e28ce5568982
Author:     Anna “CyberTailor” <cyber <AT> sysrq <DOT> in>
AuthorDate: Thu Feb 17 16:54:46 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Feb 20 15:59:54 2022 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=b4530036

syntax/gentoo-make-conf: add ALLOW_TEST

Signed-off-by: Anna Vyalkova <cyber+gentoo <AT> sysrq.in>
Closes: https://github.com/gentoo/gentoo-syntax/pull/43
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 syntax/gentoo-make-conf.vim | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/syntax/gentoo-make-conf.vim b/syntax/gentoo-make-conf.vim
index e2d9db4..b37dee3 100644
--- a/syntax/gentoo-make-conf.vim
+++ b/syntax/gentoo-make-conf.vim
@@ -17,7 +17,7 @@ endif
 
 runtime syntax/gentoo-common.vim
 
-syn cluster GentooMakeConfEC 
add=GentooMakeConfEUse,GentooMakeConfEAK,GentooMakeConfEAL,GentooMakeConfEAP,GentooMakeConfECFLAGS,GentooMakeConfELDFLAGS,GentooMakeConfEMAKEOPTS,GentooMakeConfECHOST,GentooMakeConfEFEATURES,GentooMakeConfEMISC,GentooMakeConfEMISCK,GentooMakeConfEMISCKE,GentooMakeConfEMISCN
+syn cluster GentooMakeConfEC 
add=GentooMakeConfEUse,GentooMakeConfEAK,GentooMakeConfEAL,GentooMakeConfEAP,GentooMakeConfEAT,GentooMakeConfECFLAGS,GentooMakeConfELDFLAGS,GentooMakeConfEMAKEOPTS,GentooMakeConfECHOST,GentooMakeConfEFEATURES,GentooMakeConfEMISC,GentooMakeConfEMISCK,GentooMakeConfEMISCKE,GentooMakeConfEMISCN
 syn region  GentooMakeConfE start=/^/ end=/$/ 
contains=@GentooMakeConfEC,GentooMakeConfComment
 
 " MISC {{{
@@ -118,6 +118,20 @@ hi def link GentooMakeConfEAPIN     Error
 hi def link GentooMakeConfEAPIX     Preproc
 " }}}
 
+" ALLOW_TEST {{{
+syn match   GentooMakeConfEAT /ALLOW_TEST/ contained 
nextgroup=GentooMakeConfEATE
+syn match   GentooMakeConfEATE /=/ contained nextgroup=GentooMakeConfEATV 
skipwhite
+syn cluster GentooMakeConfEATIC add=GentooMakeConfEATIP,GentooMakeConfEATIX
+syn region  GentooMakeConfEATV contained start=/"/ end=/"/ 
contains=@GentooMakeConfEATIC
+syn match   GentooMakeConfEATIP /\s*\(network\|all\)\s*/ contained
+syn match   GentooMakeConfEATIX /\\.\|\$\({[^}]\+}\|[a-zA-Z0-9\-\_]\+\)/ 
contained
+
+hi def link GentooMakeConfEAT       Identifier
+hi def link GentooMakeConfEATV      String
+hi def link GentooMakeConfEATIP     Keyword
+hi def link GentooMakeConfEATIX     Preproc
+" }}}
+
 " C*FLAGS and F*FLAGS {{{
 syn match   GentooMakeConfECFLAGS /C\(XX\)\?FLAGS/ contained 
nextgroup=GentooMakeConfECFLAGSE
 syn match   GentooMakeConfECFLAGS /FC\?FLAGS/ contained 
nextgroup=GentooMakeConfECFLAGSE

Reply via email to