Update
This commit is contained in:
1
unmanaged-vim-plug/exheres-syntax-20160115/.mailmap
Normal file
1
unmanaged-vim-plug/exheres-syntax-20160115/.mailmap
Normal file
@@ -0,0 +1 @@
|
||||
Saleem Abdulrasool <compnerd@exherbo.org> compnerd <compnerd@lithium.(none)>
|
||||
40
unmanaged-vim-plug/exheres-syntax-20160115/README
Normal file
40
unmanaged-vim-plug/exheres-syntax-20160115/README
Normal file
@@ -0,0 +1,40 @@
|
||||
COPYRIGHT
|
||||
=========
|
||||
|
||||
Copyright (c) 2008 Alexander Færøy <ahf@exherbo.org>
|
||||
You may redistribute this package under the same terms as Vim itself.
|
||||
|
||||
Based in part upon gentoo-syntax, which is:
|
||||
Copyright (c) 2004-2005 Ciaran McCreesh, Aaron Walker
|
||||
|
||||
INSTALL
|
||||
=======
|
||||
|
||||
If you are on an Exherbo-based system:
|
||||
|
||||
cave resolve app-vim/exheres-syntax
|
||||
|
||||
If you are on a Gentoo-based system:
|
||||
|
||||
cave resolve app-vim/exheres-syntax
|
||||
|
||||
or
|
||||
|
||||
emerge app-vim/exheres-syntax
|
||||
|
||||
Other:
|
||||
|
||||
Just extract the tarball to your ~/.vim/ directory.
|
||||
|
||||
BUGS
|
||||
====
|
||||
|
||||
If you discover any bugs in exheres-syntax, please file a bug under the
|
||||
"Hosted Projects" -> "Exheres-syntax" component on https://bugs.exherbo.org/
|
||||
|
||||
AUTHORS
|
||||
=======
|
||||
|
||||
* Alexander Færøy <ahf@exherbo.org>
|
||||
* Ingmar Vanhassel <ingmar@exherbo.org>
|
||||
* Saleem Abdulrasool <compnerd@compnerd.org>
|
||||
@@ -0,0 +1,13 @@
|
||||
*exheres-syntax.txt* Exheres Syntax Plug-in
|
||||
|
||||
Author: Alexander Færøy <ahf@exherbo.org>
|
||||
|
||||
Copyright: (c) 2007 by Alexander Færøy
|
||||
|
||||
==============================================================================
|
||||
|
||||
Please read http://www.exherbo.org/docs/exheres-for-smarties.html for
|
||||
information about the exheres package format.
|
||||
|
||||
==============================================================================
|
||||
vim:tw=78:ts=4:ft=help:et
|
||||
1
unmanaged-vim-plug/exheres-syntax-20160115/doc/tags
Normal file
1
unmanaged-vim-plug/exheres-syntax-20160115/doc/tags
Normal file
@@ -0,0 +1 @@
|
||||
exheres-syntax.txt exheres-syntax.txt /*exheres-syntax.txt*
|
||||
@@ -0,0 +1,14 @@
|
||||
" Vim filetype detection file
|
||||
" Language: Exheres
|
||||
" Author: Alexander Færøy <ahf@exherbo.org>
|
||||
" Copyright: Copyright (c) 2008 Alexander Færøy
|
||||
" License: You may redistribute this under the same terms as Vim itself
|
||||
|
||||
if &compatible || v:version < 603
|
||||
finish
|
||||
endif
|
||||
|
||||
au BufNewFile,BufRead *.exlib set filetype=exlib
|
||||
au BufNewFile,BufRead *.exheres-0 set filetype=exheres-0
|
||||
|
||||
" vim: set et ts=4 :
|
||||
@@ -0,0 +1,19 @@
|
||||
" Vim filetype plugin file
|
||||
" Language: Exheres-0
|
||||
" Author: Alexander Færøy <ahf@exherbo.org>
|
||||
" Copyright: Copyright (c) 2008, 2009 Alexander Færøy
|
||||
" License: You may redistribute this under the same terms as Vim itself
|
||||
|
||||
if &compatible || v:version < 603
|
||||
finish
|
||||
endif
|
||||
|
||||
runtime! ftplugin/sh.vim
|
||||
|
||||
setlocal tabstop=4
|
||||
setlocal shiftwidth=4
|
||||
setlocal expandtab
|
||||
setlocal fileencoding=utf-8
|
||||
setlocal textwidth=100
|
||||
|
||||
" vim: set et ts=4 :
|
||||
@@ -0,0 +1,19 @@
|
||||
" Vim filetype plugin file
|
||||
" Language: Exlib
|
||||
" Author: Alexander Færøy <ahf@exherbo.org>
|
||||
" Copyright: Copyright (c) 2008, 2009 Alexander Færøy
|
||||
" License: You may redistribute this under the same terms as Vim itself
|
||||
|
||||
if &compatible || v:version < 603
|
||||
finish
|
||||
endif
|
||||
|
||||
runtime! ftplugin/sh.vim
|
||||
|
||||
setlocal tabstop=4
|
||||
setlocal shiftwidth=4
|
||||
setlocal expandtab
|
||||
setlocal fileencoding=utf-8
|
||||
setlocal textwidth=100
|
||||
|
||||
" vim: set et ts=4 :
|
||||
@@ -0,0 +1,18 @@
|
||||
" Vim indent file
|
||||
" Language: Exheres-0
|
||||
" Author: Alexander Færøy <ahf@exherbo.org>
|
||||
" Copyright: Copyright (c) 2008 Alexander Færøy
|
||||
" License: You may redistribute this under the same terms as Vim itself
|
||||
|
||||
if &compatible || v:version < 603
|
||||
finish
|
||||
endif
|
||||
|
||||
if exists("b:did_indent")
|
||||
finish
|
||||
endif
|
||||
|
||||
runtime! indent/sh.vim
|
||||
let b:did_indent = 1
|
||||
|
||||
" vim: set et ts=4 :
|
||||
18
unmanaged-vim-plug/exheres-syntax-20160115/indent/exlib.vim
Normal file
18
unmanaged-vim-plug/exheres-syntax-20160115/indent/exlib.vim
Normal file
@@ -0,0 +1,18 @@
|
||||
" Vim indent file
|
||||
" Language: Exlib
|
||||
" Author: Alexander Færøy <ahf@exherbo.org>
|
||||
" Copyright: Copyright (c) 2008 Alexander Færøy
|
||||
" License: You may redistribute this under the same terms as Vim itself
|
||||
|
||||
if &compatible || v:version < 603
|
||||
finish
|
||||
endif
|
||||
|
||||
if exists("b:did_indent")
|
||||
finish
|
||||
endif
|
||||
|
||||
runtime! indent/sh.vim
|
||||
let b:did_indent = 1
|
||||
|
||||
" vim: set et ts=4 :
|
||||
@@ -0,0 +1,89 @@
|
||||
" Vim plugin
|
||||
" Language: Create new common-metadata.exlib
|
||||
" Author: Saleem Abdulrasool <compnerd@compnerd.org>
|
||||
" Copyright: Copyright (c) 2008-2012 Saleem Abdulrasool <compnerd@compnerd.org>
|
||||
" License: You may redistribute this under the same terms as Vim itself
|
||||
|
||||
if &compatible || v:version < 603
|
||||
finish
|
||||
endif
|
||||
|
||||
fun! <SID>GenerateCommonMetadataExlib()
|
||||
let l:pastebackup = &paste
|
||||
set nopaste
|
||||
|
||||
if exists("*strftime")
|
||||
let l:year = strftime("%Y")
|
||||
else
|
||||
let l:year = "<year>"
|
||||
endif
|
||||
|
||||
put = '# Copyright ' . l:year . ' ' . g:exheres_author_name
|
||||
put = '# Distributed under the terms of the GNU General Public License v2'
|
||||
put = ''
|
||||
put = 'SUMMARY=\"\"'
|
||||
put = 'DESCRIPTION=\"'
|
||||
put = 'If DESCRIPTION is set it must not be an empty string.'
|
||||
put = '\"'
|
||||
put = 'HOMEPAGE=\"\"'
|
||||
put = 'DOWNLOADS=\"\"'
|
||||
put = ''
|
||||
put = 'LICENCES=\"\"'
|
||||
put = 'SLOT=\"0\"'
|
||||
put = 'MYOPTIONS=\"\"'
|
||||
put = ''
|
||||
put = 'DEPENDENCIES=\"'
|
||||
put = ' build:'
|
||||
put = ' build+run:'
|
||||
put = '\"'
|
||||
put = ''
|
||||
put = 'BUGS_TO=\"\"'
|
||||
put = ''
|
||||
put = 'REMOTE_IDS=\"\"'
|
||||
put = ''
|
||||
put = 'UPSTREAM_CHANGELOG=\"\"'
|
||||
put = 'UPSTREAM_DOCUMENTATION=\"\"'
|
||||
put = 'UPSTREAM_RELEASE_NOTES=\"\"'
|
||||
put = ''
|
||||
|
||||
0
|
||||
/^SUMMARY=/
|
||||
exec "normal 2f\""
|
||||
nohls
|
||||
|
||||
if pastebackup != 0
|
||||
set paste
|
||||
endif
|
||||
endfun
|
||||
|
||||
com! -nargs=0 NewCommonMetadataExlib call <SID>GenerateCommonMetadataExlib
|
||||
|
||||
if !exists("g:common_metadata_create_on_empty")
|
||||
let g:common_metadata_create_on_empty = 1
|
||||
endif
|
||||
|
||||
if v:progname =~ "vimdiff"
|
||||
let g:common_metadata_create_on_empty = 0
|
||||
endif
|
||||
|
||||
if !exists("g:exheres_author_name")
|
||||
let g:exheres_author_name = "<name>"
|
||||
endif
|
||||
|
||||
augroup NewCommonMetadataExlib
|
||||
au!
|
||||
" common-metadata.exlib
|
||||
autocmd BufNewFile common-metadata.exlib
|
||||
\ if g:common_metadata_create_on_empty |
|
||||
\ call <SID>GenerateCommonMetadataExlib() |
|
||||
\ endif
|
||||
" ${PN}.exlib
|
||||
autocmd BufNewFile *.exlib
|
||||
\ if expand('%:p:t') == expand('%:p:h:t') . '.exlib' |
|
||||
\ if g:common_metadata_create_on_empty |
|
||||
\ call <SID>GenerateCommonMetadataExlib() |
|
||||
\ endif |
|
||||
\ endif
|
||||
augroup END
|
||||
|
||||
" vim: set et ts=4 sw=4 :
|
||||
@@ -0,0 +1,80 @@
|
||||
" Vim plugin
|
||||
" Language: Create new exheres-0 package.
|
||||
" Author: Alexander Færøy <ahf@exherbo.org>
|
||||
" Copyright: Copyright (c) 2007 Alexander Færøy
|
||||
" License: You may redistribute this under the same terms as Vim itself
|
||||
|
||||
if &compatible || v:version < 603
|
||||
finish
|
||||
endif
|
||||
|
||||
fun! <SID>GenerateExheresZeroPackage()
|
||||
let l:pastebackup = &paste
|
||||
set nopaste
|
||||
|
||||
if exists("*strftime")
|
||||
let l:year = strftime("%Y")
|
||||
else
|
||||
let l:year = "<year>"
|
||||
endif
|
||||
|
||||
put! ='# Copyright ' . l:year . ' ' . g:exheres_author_name
|
||||
put ='# Distributed under the terms of the GNU General Public License v2'
|
||||
put =''
|
||||
put ='SUMMARY=\"\"'
|
||||
put ='DESCRIPTION=\"'
|
||||
put ='If DESCRIPTION is set it must not be an empty string.'
|
||||
put ='\"'
|
||||
put ='HOMEPAGE=\"\"'
|
||||
put ='DOWNLOADS=\"\"'
|
||||
put =''
|
||||
put ='LICENCES=\"\"'
|
||||
put ='SLOT=\"0\"'
|
||||
put ='PLATFORMS=\"\"'
|
||||
put ='MYOPTIONS=\"\"'
|
||||
put =''
|
||||
put ='DEPENDENCIES=\"'
|
||||
put =' build:'
|
||||
put =' build+run:'
|
||||
put ='\"'
|
||||
put =''
|
||||
put ='BUGS_TO=\"\"'
|
||||
put =''
|
||||
put ='DEFAULT_SRC_CONFIGURE_PARAMS=( )'
|
||||
put ='DEFAULT_SRC_CONFIGURE_OPTION_WITHS=( )'
|
||||
put ='DEFAULT_SRC_CONFIGURE_OPTION_ENABLES=( )'
|
||||
put =''
|
||||
|
||||
0
|
||||
/^SUMMARY=/
|
||||
exec "normal 2f\""
|
||||
nohls
|
||||
|
||||
if pastebackup == 0
|
||||
set nopaste
|
||||
endif
|
||||
endfun
|
||||
|
||||
com! -nargs=0 NewExheresZeroPackage call <SID>GenerateExheresZeroPackage()
|
||||
|
||||
if !exists("g:package_create_on_empty")
|
||||
let g:package_create_on_empty = 1
|
||||
endif
|
||||
|
||||
if v:progname =~ "vimdiff"
|
||||
let g:package_create_on_empty = 0
|
||||
endif
|
||||
|
||||
if !exists("g:exheres_author_name")
|
||||
let g:exheres_author_name = "<name>"
|
||||
endif
|
||||
|
||||
augroup NewExheresZeroPackage
|
||||
au!
|
||||
autocmd BufNewFile *.exheres-0
|
||||
\ if g:package_create_on_empty |
|
||||
\ call <SID>GenerateExheresZeroPackage() |
|
||||
\ endif
|
||||
augroup END
|
||||
|
||||
" vim: set et ts=4 :
|
||||
@@ -0,0 +1,18 @@
|
||||
" Vim syntaxfile
|
||||
" Language: Exheres-0
|
||||
" Author: Alexander Færøy <ahf@exherbo.org>
|
||||
" Copyright: Copyright (c) 2008 Alexander Færøy
|
||||
" License: You may redistribute this under the same terms as Vim itself
|
||||
|
||||
if &compatible || v:version < 603
|
||||
finish
|
||||
endif
|
||||
|
||||
syn keyword ExheresZeroError export_exlib_phases
|
||||
syn keyword ExheresZeroError myexparam exparam
|
||||
|
||||
runtime syntax/exheres-common.vim
|
||||
|
||||
let b:current_syntax = "exheres-0"
|
||||
|
||||
" vim: set et ts=4 :
|
||||
@@ -0,0 +1,142 @@
|
||||
" Vim syntaxfile
|
||||
" Language: Common code for exheres syntax
|
||||
" Author: Alexander Færøy <ahf@exherbo.org>
|
||||
" Copyright: Copyright (c) 2008 Alexander Færøy
|
||||
" License: You may redistribute this under the same terms as Vim itself
|
||||
|
||||
if &compatible || v:version < 603
|
||||
finish
|
||||
endif
|
||||
|
||||
let is_bash = 1
|
||||
runtime! syntax/sh.vim
|
||||
unlet b:current_syntax
|
||||
|
||||
syn region ExheresHeader contained start=/^#/ end=/$/ contains=ExheresCopyrightHeader
|
||||
syn region ExheresHeaderBlock start=/\%^\(#\)\@=/ end=/^$/ contains=ExheresHeader
|
||||
|
||||
" Unfilled copyright notice
|
||||
syn region ExheresCopyrightHeader contained start=/^#\s*Copyright/ end=/$/ contains=ExheresCopyrightError
|
||||
syn match ExheresCopyrightError contained /<\(name\|year\)>/
|
||||
|
||||
" Phases
|
||||
syn keyword ExheresZeroFunctions pkg_pretend pkg_setup pkg_preinst pkg_postinst pkg_prerm pkg_postrm pkg_nofetch pkg_config pkg_info
|
||||
syn keyword ExheresZeroFunctions src_fetch_extra src_unpack src_prepare src_configure src_compile src_test src_test_expensive src_install
|
||||
|
||||
" Default phases
|
||||
syn keyword ExheresZeroFunctions default
|
||||
syn keyword ExheresZeroFunctions default_pkg_pretend default_pkg_setup default_pkg_preinst default_pkg_postinst default_pkg_prerm default_pkg_postrm default_pkg_nofetch default_pkg_config default_pkg_info
|
||||
syn keyword ExheresZeroFunctions default_src_fetch_extra default_src_unpack default_src_prepare default_src_configure default_src_compile default_src_test default_src_test_expensive default_src_install
|
||||
|
||||
" Multibuild phases
|
||||
syn keyword ExheresZeroFunctions compile_one_multibuild compile_prepare_one_multibuild configure_one_multibuild configure_prepare_one_multibuild install_one_multibuild install_prepare_one_multibuild prepare_one_multibuild prepare_prepare_one_multibuild test_expensive_one_multibuild test_expensive_prepare_one_multibuild test_one_multibuild test_prepare_one_multibuild unpack_one_multibuild unpack_prepare_one_multibuild
|
||||
|
||||
" die_functions.bash
|
||||
syn keyword ExheresZeroCoreKeyword die assert nonfatal
|
||||
|
||||
" echo_functions.bash
|
||||
syn keyword ExheresZeroCoreKeyword einfo elog ewarn eerror ebegin eend
|
||||
syn keyword ExheresZeroCoreKeyword einfon ewend
|
||||
|
||||
" install_functions.bash
|
||||
syn keyword ExheresZeroCoreKeyword keepdir into insinto exeinto docinto insopts diropts exeopts libopts
|
||||
|
||||
" kernel_functions.bash
|
||||
syn keyword ExheresZeroCoreKeyword KV_major KV_minor KV_micro KV_to_int get_KV
|
||||
|
||||
" sydbox.bash
|
||||
syn keyword ExheresZeroCoreKeyword esandbox
|
||||
syn match ExheresZeroError "sydboxcheck"
|
||||
syn match ExheresZeroError "sydboxcmd"
|
||||
syn match ExheresZeroError "addread"
|
||||
syn match ExheresZeroError "adddeny"
|
||||
syn match ExheresZeroError "addpredict"
|
||||
|
||||
" exheres-0/build_functions.bash
|
||||
syn keyword ExheresZeroCoreKeyword expatch econf emagicdocs edo exhost
|
||||
|
||||
" exheres-0/conditional_functions.bash
|
||||
syn keyword ExheresZeroCoreKeyword option_with option_enable
|
||||
syn keyword ExheresZeroError use_with use_enable
|
||||
|
||||
" exheres-0/exlib_functions.bash
|
||||
syn keyword ExheresZeroRequire require
|
||||
|
||||
" exheres-0/list_functions.bash
|
||||
syn keyword ExheresZeroError einstall use usev useq
|
||||
syn keyword ExheresZeroCoreKeyword optionfmt option optionv optionq has hasv hasq
|
||||
syn keyword ExheresZeroCoreKeyword expecting_tests
|
||||
|
||||
" exheres-0/portage_stubs.bash
|
||||
syn keyword ExheresZeroCoreKeyword has_version best_version
|
||||
syn keyword ExheresZeroError portageq vdb_path check_KV debug-print debug-print-function debug-print-section
|
||||
|
||||
" utils/
|
||||
syn keyword ExheresZeroCoreKeyword dobin doconfd dodir doenvd doexe doinfo
|
||||
syn keyword ExheresZeroCoreKeyword doinitd doins dolib dolib.a dolib.so doman domo dosym
|
||||
syn keyword ExheresZeroCoreKeyword newbin newconfd newdoc newenvd newexe newinitd newins newlib.a newlib.so
|
||||
syn keyword ExheresZeroCoreKeyword newman unpack
|
||||
syn keyword ExheresZeroCoreKeyword herebin hereconfd hereenvd hereinitd hereins
|
||||
syn keyword ExheresZeroError dosbin fperms fowners newsbin heresbin
|
||||
|
||||
" utils/exheres-0/
|
||||
syn keyword ExheresZeroCoreKeyword emake dodoc
|
||||
syn keyword ExheresZeroError dohard donewins dosed doset dohtml
|
||||
syn keyword ExheresZeroError prepall prepalldocs prepallinfo prepallman prepallstrip prepdocs prepinfo prepman prepstrip
|
||||
syn match ExheresZeroError /ecompress\w*/
|
||||
|
||||
" autotools.exlib
|
||||
syn keyword ExheresZeroCoreKeyword eautoreconf eaclocal eautoconf eautoheader eautomake
|
||||
|
||||
" Legacy ebuild stuff
|
||||
syn match ExheresZeroError /^SOURCES/
|
||||
syn match ExheresZeroError /^DISTDIR/
|
||||
syn match ExheresZeroError /^FILESDIR/
|
||||
syn match ExheresZeroError /^PORTDIR/
|
||||
syn match ExheresZeroError /^WORKDIR/
|
||||
syn match ExheresZeroError /^KEYWORDS/
|
||||
syn match ExheresZeroError /^PROVIDE/
|
||||
syn match ExheresZeroError /^IUSE/
|
||||
syn match ExheresZeroError /^LICENSE/
|
||||
syn match ExheresZeroError /^LICENCE[^S]/
|
||||
syn match ExheresZeroError /^SRC_URI/
|
||||
syn match ExheresZeroError /^EAPI/
|
||||
syn match ExheresZeroError /AA/
|
||||
syn match ExheresZeroError /ARCH/
|
||||
syn match ExheresZeroError /KV/
|
||||
syn match ExheresZeroError /^\(A\|D\|S\|T\)=/
|
||||
syn match ExheresZeroErrorC /\${\(P\|PF\|A\|D\|S\|T\)}/
|
||||
syn match ExheresZeroErrorC /\${\(DISTDIR\|FILESDIR\|PORTDIR\|SOURCES\|WORKDIR\)}/
|
||||
|
||||
" Read-only variables
|
||||
syn match ExheresZeroError /^\(PNV\|PN\|PV\|PR\|PVR\|PNVR\|ARCHIVES\)=/
|
||||
|
||||
" Bad variable assignments
|
||||
syn match ExheresZeroError /^SLOT\s*=\s*\(""\|''\|$\)/
|
||||
syn match ExheresZeroError ~^WORK="\?\${\?WORKBASE}\?/\${\?PNV}\?"\?\s*$~
|
||||
syn match ExheresZeroErrorC /\${PN}-\${PV}/
|
||||
|
||||
" Highlight tabs and trailing whitespace as errors
|
||||
syn match ExheresZeroError " "
|
||||
syn match ExheresZeroError "\s\+$"
|
||||
|
||||
" Highlight last line if it's not empty
|
||||
syn match ExheresZeroError /^.\+\%$/
|
||||
|
||||
" Highlight it
|
||||
syn cluster ExheresZeroContents contains=ExheresZeroCoreKeyword,ExheresZeroFunctions,ExheresZeroRequire
|
||||
syn cluster ExheresZeroContents add=ExheresZeroError,ExheresZeroErrorC
|
||||
|
||||
syn cluster shCommandSubList add=@ExheresZeroContents
|
||||
syn cluster shDblQuoteList add=ExheresZeroErrorC
|
||||
|
||||
hi def link ExheresZeroCoreKeyword Keyword
|
||||
hi def link ExheresZeroFunctions Special
|
||||
hi def link ExheresZeroRequire Include
|
||||
hi def link ExheresZeroError Error
|
||||
hi def link ExheresZeroErrorC Error
|
||||
hi def link ExheresHeader Comment
|
||||
hi def link ExheresCopyrightHeader Comment
|
||||
hi def link ExheresCopyrightError Error
|
||||
|
||||
" vim: set et ts=4 :
|
||||
18
unmanaged-vim-plug/exheres-syntax-20160115/syntax/exlib.vim
Normal file
18
unmanaged-vim-plug/exheres-syntax-20160115/syntax/exlib.vim
Normal file
@@ -0,0 +1,18 @@
|
||||
" Vim syntaxfile
|
||||
" Language: Exheres-0
|
||||
" Author: Alexander Færøy <ahf@exherbo.org>
|
||||
" Copyright: Copyright (c) 2008 Alexander Færøy
|
||||
" License: You may redistribute this under the same terms as Vim itself
|
||||
|
||||
if &compatible || v:version < 603
|
||||
finish
|
||||
endif
|
||||
|
||||
syn keyword ExheresZeroRequire export_exlib_phases
|
||||
syn keyword ExheresZeroRequire myexparam exparam
|
||||
|
||||
runtime syntax/exheres-common.vim
|
||||
|
||||
let b:current_syntax = "exlib"
|
||||
|
||||
" vim: set et ts=4 :
|
||||
Reference in New Issue
Block a user