From 8f87dfb9e5cb4023a69b1325f2b0235c58fe03cb Mon Sep 17 00:00:00 2001 From: Thomas Bracht Laumann Jespersen Date: Mon, 2 May 2022 21:02:05 +0200 Subject: newebuild: move EAPI guard outside inherit guard MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The convention is to put the EAPI guard before any inherit guards. Signed-off-by: Thomas Bracht Laumann Jespersen Closes: https://github.com/gentoo/gentoo-syntax/pull/46 Signed-off-by: Michał Górny --- plugin/newebuild.vim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugin/newebuild.vim b/plugin/newebuild.vim index 166713d..fddbc59 100644 --- a/plugin/newebuild.vim +++ b/plugin/newebuild.vim @@ -47,15 +47,15 @@ fun! MakeNewEbuild() put ='# @BLURB: ' put ='# @DESCRIPTION:' put ='' - let l:eclass_ident = substitute(toupper(l:eclass), "[^A-Z0-9]", "_", "g") - put ='if [[ ! ${_' . l:eclass_ident . '} ]]; then' - put ='_' . l:eclass_ident . '=1' - put ='' put ='case ${EAPI} in' put =' 8) ;;' put =' *) die \"${ECLASS}: EAPI ${EAPI} unsupported.\"' put ='esac' put ='' + let l:eclass_ident = substitute(toupper(l:eclass), "[^A-Z0-9]", "_", "g") + put ='if [[ ! ${_' . l:eclass_ident . '} ]]; then' + put ='_' . l:eclass_ident . '=1' + put ='' put ='fi' " }}} -- cgit v1.2.3-65-gdbad