[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] syntax: gentoo: highlight additional EAPI 7/8 variables
From: |
David Michael |
Subject: |
[PATCH] syntax: gentoo: highlight additional EAPI 7/8 variables |
Date: |
Mon, 14 Jun 2021 11:27:24 -0400 |
Add IDEPEND from EAPI 8, and also add more EAPI 7 roots so that all
of ROOT, EROOT, SYSROOT, ESYSROOT, and BROOT are supported.
Signed-off-by: David Michael <fedora.dm0@gmail.com>
---
Hi,
Can these additional variables be highlighted for Gentoo ebuilds? This
will highlight the important stuff for working with different roots with
EAPI 8, which is now supported.
Thanks.
David
syntax/extra/gentoo.nanorc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/syntax/extra/gentoo.nanorc b/syntax/extra/gentoo.nanorc
index 9b4c5097..c55b3e66 100644
--- a/syntax/extra/gentoo.nanorc
+++ b/syntax/extra/gentoo.nanorc
@@ -17,8 +17,8 @@ color green "-(eq|ne|gt|lt|ge|le)\>"
## Variables... official portage ones in red, all others in bright red:
color brightred "\$[-0-9@*#?$!]" "\$[[:alpha:]_][[:alnum:]_]*"
color brightred
"\$\{[#!]?([-@*#?$!]|[0-9]+|[[:alpha:]_][[:alnum:]_]*)(\[([[:digit:]]|@)+\])?(([#%/]|:?[-=?+])[^}]*\}|\[|\})"
-color red
"\<(EAPI|ARCH|HOMEPAGE|DESCRIPTION|IUSE|SRC_URI|LICENSE|SLOT|KEYWORDS|[BHPR]?DEPEND|PROVIDE|PROPERTIES|REQUIRED_USE|RESTRICT|USERLAND)\>"
-color red
"\<(S|E?D|T|PV|PF|P|PN|PR|PVR|A|CATEGORY|DISTDIR|FILESDIR|EPREFIX|E?ROOT|WORKDIR)\>"
+color red
"\<(EAPI|ARCH|HOMEPAGE|DESCRIPTION|IUSE|SRC_URI|LICENSE|SLOT|KEYWORDS|[BHIPR]?DEPEND|PROVIDE|PROPERTIES|REQUIRED_USE|RESTRICT|USERLAND)\>"
+color red
"\<(S|E?D|T|PV|PF|P|PN|PR|PVR|A|CATEGORY|DISTDIR|FILESDIR|EPREFIX|([BE]?|E?SYS)ROOT|WORKDIR)\>"
color red "\<(AS|C(PP|XX)?|LD)FLAGS\>" "\<C(HOST|TARGET|BUILD)\>"
"\<(MERGE_TYPE|REPLACING_VERSIONS|REPLACED_BY_VERSION)\>"
color red "\<EBUILD_PHASE(_FUNC)?\>"
color red
"\<QA_((TEXTRELS|EXECSTACK|WX_LOAD)(_[a-zA-Z_0-9]+)?|DT_HASH|PRESTRIPPED)\>"
--
2.31.1
- [PATCH] syntax: gentoo: highlight additional EAPI 7/8 variables,
David Michael <=