aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick McLean <patrick.mclean@sony.com>2023-03-03 11:09:11 -0800
committerMichał Górny <mgorny@gentoo.org>2023-03-09 06:46:02 +0100
commit347fa38461e86eda45f10a275b038386d4f608e1 (patch)
tree3153103bc83e65ca25ac86076775ae312db17ae8
parentsyntax/ebuild.vim: Add support for udev.eclass (diff)
downloadgentoo-syntax-8.tar.gz
gentoo-syntax-8.tar.bz2
gentoo-syntax-8.zip
syntax/ebuild.vim: Add support for check-reqs.eclassv8
Signed-off-by: Patrick McLean <patrick.mclean@sony.com> Closes: https://github.com/gentoo/gentoo-syntax/pull/55 Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r--syntax/ebuild.vim7
1 files changed, 6 insertions, 1 deletions
diff --git a/syntax/ebuild.vim b/syntax/ebuild.vim
index 7c6138b..17c774c 100644
--- a/syntax/ebuild.vim
+++ b/syntax/ebuild.vim
@@ -275,6 +275,9 @@ syn keyword EbuildTmpfilesKeyword dotmpfiles newtmpfiles tmpfiles_process
syn keyword EbuildUdevKeyword get_udevdir udev_dorules udev_newrules udev_reload
syn keyword EbuildDeprecatedKeyword udev_get_udevdir
+" check-reqs
+syn keyword EbuildCheckReqsKeyword check-reqs_pkg_setup check-reqs_pkg_pretend
+
" EXPORT_FUNCTIONS
syn match EbuildExportFunctions /EXPORT_FUNCTIONS/ skipwhite nextgroup=EbuildExportFunctionsFunc,EbuildExportFunctionsFuncE
syn match EbuildExportFunctionsFunc contained /\S\+\(\s\|$\)\@=/ skipwhite nextgroup=EbuildExportFunctionsFunc,EbuildExportFunctionsFuncE
@@ -344,7 +347,8 @@ syn cluster EbuildThings add=EbuildDependApacheKeyword,EbuildApacheModuleKeyword
syn cluster EbuildThings add=EbuildVirtualXKeyword,EbuildGnome2Keyword,EbuildAutoKeyword
syn cluster EbuildThings add=EbuildDeprecatedKeyword,EbuildUnpackerKeyword,EbuildUserKeyword
syn cluster EbuildThings add=EbuildCDROMKeyword,EbuildLinuxInfoKeyword,EbuildDistutilsFunction
-syn cluster EbuildThings add=EbuildCMakeKeyword,EbuildTmpfilesKeyword,EbuildUdevKeyword
+syn cluster EbuildThings add=EbuildCMakeKeyword,EbuildCMakeFunction,EbuildTmpfilesKeyword
+syn cluster EbuildThings add=EbuildUdevKeyword,EbuildCheckReqsKeyword
syn cluster shCommandSubList add=@EbuildThings
syn cluster shCommentGroup add=GentooBug
@@ -389,6 +393,7 @@ hi def link EbuildUserKeyword Identifier
hi def link EbuildCMakeKeyword Identifier
hi def link EbuildTmpfilesKeyword Identifier
hi def link EbuildUdevKeyword Identifier
+hi def link EbuildCheckReqsKeyword Identifier
hi def link EbuildDistutilsFunction Special
hi def link EclassDocumentationTag Identifier