Signed-off-by: Daniel M. Capella <polyzen@archlinux.org> --- src/vim/ftplugin/PKGBUILD.vim | 3 +++ src/vim/syntax/PKGBUILD.vim | 20 +++++++------------- 2 files changed, 10 insertions(+), 13 deletions(-) diff --git a/src/vim/ftplugin/PKGBUILD.vim b/src/vim/ftplugin/PKGBUILD.vim index 66da6f4..c482671 100644 --- a/src/vim/ftplugin/PKGBUILD.vim +++ b/src/vim/ftplugin/PKGBUILD.vim @@ -1,3 +1,6 @@ +" Vim filetype plugin file +" Language: Arch Linux package build description file + if exists('b:did_ftplugin') | finish | endif let b:did_ftplugin = 1 diff --git a/src/vim/syntax/PKGBUILD.vim b/src/vim/syntax/PKGBUILD.vim index e00d7ac..8e3e1b9 100644 --- a/src/vim/syntax/PKGBUILD.vim +++ b/src/vim/syntax/PKGBUILD.vim @@ -1,12 +1,10 @@ " Vim syntax file -" Language: PKGBUILD -" Maintainer: Alessio 'mOLOk' Bolognino <themolok at gmail.com> -" Last Change: 2007/05/08 -" Version Info: PKGBUILD-0.2 (colorphobic) +" Language: Arch Linux package build description file +" Original Author: Alessio 'mOLOk' Bolognino <themolok at gmail.com> " quit when a syntax file was already loaded if exists('b:current_syntax') - finish + finish endif let b:main_syntax = 'sh' @@ -237,10 +235,10 @@ syn match pbMaintainerGroup /Maintainer.*/ contains=pbMaintainer contained syn match pbDate /[0-9]\{4}\/[0-9]\{2}\/[0-9]\{2}/ contained -syn cluster pbCommentGroup contains=pbTodo,pb_k_maintainer,pbMaintainerGroup,pbDate -syn keyword pbTodo contained COMBAK FIXME TODO XXX -syn match pbComment "^#.*$" contains=@pbCommentGroup -syn match pbComment "[^0-9]#.*$" contains=@pbCommentGroup +syn cluster pbCommentGroup contains=pbTodo,pb_k_maintainer,pbMaintainerGroup,pbDate +syn keyword pbTodo contained COMBAK FIXME TODO XXX +syn match pbComment "^#.*$" contains=@pbCommentGroup +syn match pbComment "[^0-9]#.*$" contains=@pbCommentGroup " quotes are handled by sh.vim @@ -325,8 +323,4 @@ hi def link pbKeywords Keyword hi def link pbDate Special -"syntax include @SHELL syntax/sh.vim -"syntax region BUILD start=/^build()/ end=/^}/ contains=@SHELL "let b:current_syntax = 'PKGBUILD' - -" vim: ft=vim -- 2.20.1