From b45300366c9dde34326336277687e28ce5568982 Mon Sep 17 00:00:00 2001 From: Anna “CyberTailor” Date: Thu, 17 Feb 2022 21:54:46 +0500 Subject: syntax/gentoo-make-conf: add ALLOW_TEST MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Anna Vyalkova Closes: https://github.com/gentoo/gentoo-syntax/pull/43 Signed-off-by: Michał Górny --- 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 -- cgit v1.2.3-65-gdbad