aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick McLean <patrick.mclean@sony.com>2023-03-03 11:06:42 -0800
committerMichał Górny <mgorny@gentoo.org>2023-03-09 06:46:00 +0100
commit3af5be21dba86a4ccdc399ac39eb7ec294efe6d6 (patch)
treea16ae699fce423974ba20b9e7b8e3f55b0ba8e51
parentsyntax/ebuild.vim: Add dostrip, ver_cut, ver_rs, ver_test (diff)
downloadgentoo-syntax-3af5be21dba86a4ccdc399ac39eb7ec294efe6d6.tar.gz
gentoo-syntax-3af5be21dba86a4ccdc399ac39eb7ec294efe6d6.tar.bz2
gentoo-syntax-3af5be21dba86a4ccdc399ac39eb7ec294efe6d6.zip
syntax/ebuild.vim: Add support for cmake.eclass
Signed-off-by: Patrick McLean <patrick.mclean@sony.com> Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r--syntax/ebuild.vim8
1 files changed, 8 insertions, 0 deletions
diff --git a/syntax/ebuild.vim b/syntax/ebuild.vim
index c012801..0027d5c 100644
--- a/syntax/ebuild.vim
+++ b/syntax/ebuild.vim
@@ -262,6 +262,12 @@ syn keyword EbuildUnpackerKeyword unpack_pdv unpack_makeself
syn keyword EbuildDeprecatedKeyword enewuser enewgroup
syn keyword EbuildUserKeyword egetent
+" cmake
+syn keyword EbuildCMakeKeyword cmake_run_in cmake_comment_add_subdirectory cmake_use_find_package
+syn keyword EbuildCMakeKeyword cmake_build mycmakeargs MYCMAKEARGS
+syn keyword EbuildCMakeKeyword cmake_src_prepare cmake_src_configure cmake_src_compile
+syn keyword EbuildCMakeKeyword cmake_src_test cmake_src_install
+
" EXPORT_FUNCTIONS
syn match EbuildExportFunctions /EXPORT_FUNCTIONS/ skipwhite nextgroup=EbuildExportFunctionsFunc,EbuildExportFunctionsFuncE
syn match EbuildExportFunctionsFunc contained /\S\+\(\s\|$\)\@=/ skipwhite nextgroup=EbuildExportFunctionsFunc,EbuildExportFunctionsFuncE
@@ -331,6 +337,7 @@ 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
syn cluster shCommandSubList add=@EbuildThings
syn cluster shCommentGroup add=GentooBug
@@ -372,6 +379,7 @@ hi def link EbuildCDROMKeyword Identifier
hi def link EbuildLinuxInfoKeyword Identifier
hi def link EbuildUnpackerKeyword Identifier
hi def link EbuildUserKeyword Identifier
+hi def link EbuildCMakeKeyword Identifier
hi def link EbuildDistutilsFunction Special
hi def link EclassDocumentationTag Identifier