[PATCH] Add sha224sums to PKGBUILD vim syntax
Signed-off-by: morganamilo <morganamilo@gmail.com> --- src/vim/syntax/PKGBUILD.vim | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/vim/syntax/PKGBUILD.vim b/src/vim/syntax/PKGBUILD.vim index 110bbc7..6a27360 100644 --- a/src/vim/syntax/PKGBUILD.vim +++ b/src/vim/syntax/PKGBUILD.vim @@ -176,6 +176,17 @@ hi def link pbSha1Quotes Keyword hi def link pbSha1Hash Error hi def link pbValidSha1sums Number +" sha224sums +syn keyword pb_k_sha224sums sha224sums contained +syn match pbIllegalsha224sums /[^='"()\/ ]/ contained contains=pbValidsha224sums +syn match pbValidsha224sums /\x\{64\}/ contained +syn region pbsha224sumsGroup start=/^sha224sums/ end=/)/ contains=pb_k_sha224sums,pbsha224Quotes,pbsha224Hash,pbIllegalsha224sums keepend +syn match pbsha224Quotes /'.*'\|".*"/ contained contains=pbsha224Hash,pbIllegalsha224sums +syn match pbsha224Hash /\x\+/ contained contains=pbValidsha224sums +hi def link pbsha224Quotes Keyword +hi def link pbsha224Hash Error +hi def link pbValidsha224sums Number + " sha256sums syn keyword pb_k_sha256sums sha256sums contained syn match pbIllegalSha256sums /[^='"()\/ ]/ contained contains=pbValidSha256sums @@ -291,6 +302,9 @@ hi def link pbIllegalMd5sums Error hi def link pb_k_sha1sums pbKeywords hi def link pbIllegalSha1sums Error +hi def link pb_k_sha224sums pbKeywords +hi def link pbIllegalSha224sums Error + hi def link pb_k_sha256sums pbKeywords hi def link pbIllegalSha256sums Error -- 2.17.1
Quoting morganamilo (2018-06-08 03:13:52)
Signed-off-by: morganamilo <morganamilo@gmail.com> --- src/vim/syntax/PKGBUILD.vim | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
Merged, thanks! -- Sincerely, Johannes Löthberg PGP Key ID: 0x50FB9B273A9D0BB5 PGP Key FP: 5134 EF9E AF65 F95B 6BB1 608E 50FB 9B27 3A9D 0BB5 https://theos.kyriasis.com/~kyrias/
participants (2)
-
Johannes Löthberg
-
morganamilo