diff options
author | Anna “CyberTailor” <cyber@sysrq.in> | 2022-02-17 21:54:46 +0500 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-02-20 16:59:54 +0100 |
commit | b45300366c9dde34326336277687e28ce5568982 (patch) | |
tree | 53627dd03a01e00faa0308badb016a96bd8d6c2c | |
parent | syntax/gentoo-make-conf: don't skipwhite to `=` (diff) | |
download | gentoo-syntax-b45300366c9dde34326336277687e28ce5568982.tar.gz gentoo-syntax-b45300366c9dde34326336277687e28ce5568982.tar.bz2 gentoo-syntax-b45300366c9dde34326336277687e28ce5568982.zip |
syntax/gentoo-make-conf: add ALLOW_TESTgentoo-syntax-20220220
Signed-off-by: Anna Vyalkova <cyber+gentoo@sysrq.in>
Closes: https://github.com/gentoo/gentoo-syntax/pull/43
Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r-- | syntax/gentoo-make-conf.vim | 16 |
1 files changed, 15 insertions, 1 deletions
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 |