summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2015-12-20 14:23:33 +0100
committerUlrich Müller <ulm@gentoo.org>2015-12-20 14:23:33 +0100
commit92a21c65400b152027c121d4214f993e2151166f (patch)
tree25dae5d2eb34eb4e7770591331a7d2e8a538b4e5
parentVersion 1.28 released. (diff)
downloadebuild-mode-92a21c65400b152027c121d4214f993e2151166f.tar.gz
ebuild-mode-92a21c65400b152027c121d4214f993e2151166f.tar.bz2
ebuild-mode-92a21c65400b152027c121d4214f993e2151166f.zip
Update package manager keywords.
* ebuild-mode-keywords.el (ebuild-mode-keywords-0): Match list of commands against PMS. (ebuild-mode-keywords-EAPI): New variable, contains only "EAPI". (ebuild-mode-keywords-eapi6): New variable, EAPI 6 commands. (ebuild-mode-keywords-eapi-deprecated) (ebuild-mode-keywords-eclass-deprecated): New variables, splitting ebuild-mode-keywords-deprecated. (ebuild-mode-keywords-eclass): Variable removed, merged into ebuild-mode-keywords-0.
-rw-r--r--ChangeLog12
-rw-r--r--ebuild-mode-keywords.el61
2 files changed, 49 insertions, 24 deletions
diff --git a/ChangeLog b/ChangeLog
index a92fd45..aba7e40 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2015-12-20 Ulrich Müller <ulm@gentoo.org>
+
+ * ebuild-mode-keywords.el (ebuild-mode-keywords-0): Match list
+ of commands against PMS.
+ (ebuild-mode-keywords-EAPI): New variable, contains only "EAPI".
+ (ebuild-mode-keywords-eapi6): New variable, EAPI 6 commands.
+ (ebuild-mode-keywords-eapi-deprecated)
+ (ebuild-mode-keywords-eclass-deprecated): New variables, splitting
+ ebuild-mode-keywords-deprecated.
+ (ebuild-mode-keywords-eclass): Variable removed, merged into
+ ebuild-mode-keywords-0.
+
2015-08-23 Ulrich Müller <ulm@gentoo.org>
* Version 1.28 released.
diff --git a/ebuild-mode-keywords.el b/ebuild-mode-keywords.el
index 50399ee..1ea0b28 100644
--- a/ebuild-mode-keywords.el
+++ b/ebuild-mode-keywords.el
@@ -29,18 +29,24 @@
;;; Code:
+;; Package manager keywords
+
(defvar ebuild-mode-keywords-0
- '(("best_version" "check_KV" "die" "diropts" "dobin" "docinto" "doconfd"
- "dodir" "dodoc" "doenvd" "doexe" "dohtml" "doinfo" "doinitd"
- "doins" "dojar" "dolib" "dolib.a" "dolib.so" "doman" "domo" "dopython"
- "dosbin" "dosym" "ebegin" "econf" "eend" "eerror" "einfo"
- "einfon" "einstall" "elog" "emake" "ewarn" "exeinto" "exeopts" "fowners"
- "fperms" "has" "has_version" "hasq" "hasv" "insinto" "insopts" "into"
- "keepdir" "libopts" "newbin" "newconfd" "newdoc" "newenvd" "newexe"
- "newinitd" "newins" "newlib.a" "newlib.so" "newman" "newsbin" "prepall"
- "prepallinfo" "prepallman" "prepallstrip" "unpack" "use"
- "use_enable" "use_with" "useq" "usev")
- font-lock-type-face))
+ '(("assert" "best_version" "debug-print" "debug-print-function"
+ "debug-print-section" "die" "diropts" "dobin" "docinto" "doconfd" "dodir"
+ "dodoc" "doenvd" "doexe" "doinfo" "doinitd" "doins" "dolib" "dolib.a"
+ "dolib.so" "doman" "domo" "dosbin" "dosym" "ebegin" "econf" "eend"
+ "eerror" "einfo" "einfon" "elog" "emake" "ewarn" "exeinto" "exeopts"
+ "fowners" "fperms" "has" "hasv" "has_version" "inherit" "insinto"
+ "insopts" "into" "keepdir" "libopts" "newbin" "newconfd" "newdoc"
+ "newenvd" "newexe" "newinitd" "newins" "newlib.a" "newlib.so" "newman"
+ "newsbin" "unpack" "use" "usev" "use_enable" "use_with")
+ font-lock-type-face))
+
+(defvar ebuild-mode-keywords-EAPI
+ ;; highlight the EAPI variable itself
+ '(("EAPI")
+ font-lock-warning-face))
(defvar ebuild-mode-keywords-eapi4
'(("docompress" "nonfatal")
@@ -50,6 +56,10 @@
'(("doheader" "newheader" "usex")
font-lock-type-face))
+(defvar ebuild-mode-keywords-eapi6
+ '(("eapply" "eapply_user" "einstalldocs" "get_libdir" "in_iuse")
+ font-lock-type-face))
+
(defvar ebuild-mode-keywords-functions
'(("pkg_nofetch" "pkg_setup" "src_unpack" "src_compile" "src_test"
"src_install" "pkg_preinst" "pkg_postinst" "pkg_prerm" "pkg_postrm"
@@ -70,6 +80,18 @@
"default_src_test" "default_src_install")
font-lock-type-face))
+(defvar ebuild-mode-keywords-sandbox
+ '(("adddeny" "addpredict" "addread" "addwrite")
+ font-lock-warning-face))
+
+(defvar ebuild-mode-keywords-eapi-deprecated
+ ;; deprecated or banned package manager commands
+ '(("dohard" "dohtml" "dosed" "einstall" "hasq" "prepalldocs" "prepall"
+ "prepallinfo" "prepallman" "prepallstrip" "useq")
+ font-lock-warning-face))
+
+;; Eclass keywords
+
;; comment-face will always override the eclass documentation strings
(defvar ebuild-mode-keywords-eclass-documentation
'(("@AUTHOR" "@BLURB" "@BUGREPORTS" "@CODE" "@DEFAULT_UNSET" "@DESCRIPTION"
@@ -81,24 +103,15 @@
(defvar ebuild-mode-keywords-warn
;; warn about "which" usage
;; see http://permalink.gmane.org/gmane.linux.gentoo.devel/46770
- '(("which" "EAPI" "bindnow-flags" "has_m64" "has_m32")
+ '(("which" "bindnow-flags" "has_m64" "has_m32")
font-lock-warning-face))
-(defvar ebuild-mode-keywords-deprecated
+(defvar ebuild-mode-keywords-eclass-deprecated
;; deprecated eclass functions
- '(("elisp-comp" "prepalldocs" "dosed" "dohard" "python_mod_compile"
- "dobashcompletion" "bash-completion_pkg_postinst" "qt4_min_version"
- "qt4_min_version_list")
+ '(("bash-completion_pkg_postinst" "dobashcompletion" "elisp-comp"
+ "python_mod_compile" "qt4_min_version" "qt4_min_version_list")
font-lock-warning-face))
-(defvar ebuild-mode-keywords-sandbox
- '(("adddeny" "addpredict" "addread" "addwrite")
- font-lock-warning-face))
-
-(defvar ebuild-mode-keywords-eclass
- '(("inherit")
- font-lock-type-face))
-
;; All keyword lists below this line are auto-generated
;; from keyword-generation.sh