From patchwork Thu Jan 17 03:13:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Daniel M. Capella" X-Patchwork-Id: 959 Return-Path: Delivered-To: patchwork@archlinux.org Received: from apollo.archlinux.org (localhost [127.0.0.1]) by apollo.archlinux.org (Postfix) with ESMTP id CA67FA9F9508 for ; Thu, 17 Jan 2019 03:14:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on apollo X-Spam-Level: X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00=-1, DKIMWL_WL_HIGH=-1.046,DKIM_SIGNED=0.1,DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,MAILING_LIST_MULTI=-1,RCVD_IN_DNSWL_MED=-2.3 autolearn=ham autolearn_force=no version=3.4.2 X-Spam-BL-Results: [127.0.9.2] [127.0.0.10] [127.0.0.10, 127.0.0.14] Received: from orion.archlinux.org (orion.archlinux.org [IPv6:2a01:4f8:160:6087::1]) by apollo.archlinux.org (Postfix) with ESMTPS for ; Thu, 17 Jan 2019 03:14:21 +0000 (UTC) Received: from orion.archlinux.org (localhost [127.0.0.1]) by orion.archlinux.org (Postfix) with ESMTP id 9000210055E957; Thu, 17 Jan 2019 03:14:20 +0000 (UTC) Received: from luna.archlinux.org (luna.archlinux.org [5.9.250.164]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits)) (No client certificate requested) by orion.archlinux.org (Postfix) with ESMTPS; Thu, 17 Jan 2019 03:14:19 +0000 (UTC) Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id 9A6492E792; Thu, 17 Jan 2019 03:14:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=archlinux.org; s=luna2; t=1547694859; bh=SPbfLV8q3qRY8qU0uTpGGvdJtN2DWpeLtImoqM9NZTE=; h=From:To:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe; b=D3DRBkZ6wvVJZc7RuF5NjEiCRenOeyczAemXcRHseS1zZhzA+/5m3rbXS4ijOCTAN 8Rq1r5a3kaqzz5Ksk6USGYBut2ArNVEznySm9HpuJXffplWtiqhnACjz7fBmKhT90h CMeHMv94RNFzeVbwK2Cj4SYMSfpjPtis5ZNj+F7jwSEeEOLokZ+TiDFxhZ8ClkE990 AyhQF6dbq7pfiWHtLPOoQ8bV2jubtWoGU6g5/kp+Tc7iScmSAyBoIfL2HpZG1aEs9M CSrM7CG5+RkiV3dMjrEBkS3tyaPrmuV2iPD90fHFj70o8laPsO0jRBik4kqf0jA0dj DYFk5t4d36v+qGvUahIPWHs7SXp2xwp/TYyB5JcwPqOo1BC1z+tgEBqDSSUm6LdTjN BtfY/GGHqd3rq4rRuKTeMEH+w6GeSJAOCalDaZNOfSWTb9EzP6Q4y3blN7GTqZNALW QzE0pdNHD/20vr8ijsZqvZWCSBdxPXC86epmpJo5RBS70nSI35dlqywv9QvWeYQ4XO +4TGYr67afVTKHwJQH/Oa4cdDGg1iNWkU7Lz7s3ay5lIM3xus4dYya+SepGwYUr8Zq PGPCK0n481uibUTZu326ln3K9ibq+UJUfBREaLsUvuWegZdybw472ldDXUzdshby5M 4HgMpeh9W8+iZehviNT29bkY= Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id 9F8D82E787 for ; Thu, 17 Jan 2019 03:14:17 +0000 (UTC) Received: from orion.archlinux.org (orion.archlinux.org [88.198.91.70]) by luna.archlinux.org (Postfix) with ESMTPS for ; Thu, 17 Jan 2019 03:14:17 +0000 (UTC) Received: from orion.archlinux.org (localhost [127.0.0.1]) by orion.archlinux.org (Postfix) with ESMTP id 799C710055E93C for ; Thu, 17 Jan 2019 03:14:16 +0000 (UTC) Received: from localhost.localdomain (unknown [70.18.5.145]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: polyzen) by orion.archlinux.org (Postfix) with ESMTPSA id F0EDC10055E93A for ; Thu, 17 Jan 2019 03:14:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=archlinux.org; s=orion; t=1547694856; bh=SPbfLV8q3qRY8qU0uTpGGvdJtN2DWpeLtImoqM9NZTE=; h=From:To:Subject:Date:In-Reply-To:References; b=ObYuBCS4s/6edJJ+TwD9Ga8rdEVNSYcwq+HMAQGXssf1QGEDgE6qXDEsvGFCfMEgJ Yd23+70vpIN/VK0+H66f8Jfwx43r8cPPgkjScSgCVLmF4wP2wIHBD+82nBBd3SMsbA BEwmkXyEsUFTAeG4l4G8SIngshTXoO5PmP3zmq/NCk3k1MiZwVP3F6n/zvUCnAWVKu eTXU9ktbuyPQ0RfDOfu9XEKmT89YtcukfQDDdMz6uYfTTY57RU6q2P4rcKDGVFI+7h 2BOQz7xs2KXI1RUdrozy4qYGRPmMCfc8UoT9HpZfvG/LYA0RgQhwkqKSnHsI/EMhgn zO2WO9dYKi5fuXlLzq3PxnM9VGi47I+y4eJjqMzv0Tv/vxP/yBZNU2aw+wW6UYyssM HHrPcG15JNwRZmX9Bw7bkSAASmNJid+x6nqXJzI158nfhJTrNsh1+N4HkegisMA6mn s/zjsEFUhpBx+DRjzU11dQowIf8i5bewE15NJ12GFc9xQpEXMtraMZdthiL8rufQQE IdDDGEaQIroI/XM6wE9wDJoZvl/UThXZIMDe3S3RHOgv+/q98RAM75oX/eV7+Lc9Ui mz+uIupCXgogHRrnbKk9rgtMkRzw0c/1DgM9YRgPgdFE3uOImHsOJ+kfK+77meYNKp ffaSDnq08IPbyD4ncfWsaZ3o= From: "Daniel M. Capella" To: pacman-contrib@lists.archlinux.org Subject: [PATCH 4/6] Vim: Fix Vint warnings Date: Wed, 16 Jan 2019 22:13:53 -0500 Message-Id: <20190117031355.7831-5-polyzen@archlinux.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190117031355.7831-1-polyzen@archlinux.org> References: <20190117031355.7831-1-polyzen@archlinux.org> MIME-Version: 1.0 X-BeenThere: pacman-contrib@lists.archlinux.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion list for pacman-contrib development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: pacman-contrib-bounces@lists.archlinux.org Sender: "pacman-contrib" Signed-off-by: Daniel M. Capella --- src/vim/ftplugin/PKGBUILD.vim | 2 +- src/vim/syntax/PKGBUILD.vim | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/vim/ftplugin/PKGBUILD.vim b/src/vim/ftplugin/PKGBUILD.vim index cbb46a9..66da6f4 100644 --- a/src/vim/ftplugin/PKGBUILD.vim +++ b/src/vim/ftplugin/PKGBUILD.vim @@ -1,4 +1,4 @@ -if exists("b:did_ftplugin") | finish | endif +if exists('b:did_ftplugin') | finish | endif let b:did_ftplugin = 1 setlocal commentstring=#\ %s diff --git a/src/vim/syntax/PKGBUILD.vim b/src/vim/syntax/PKGBUILD.vim index 37d0ab3..17afa35 100644 --- a/src/vim/syntax/PKGBUILD.vim +++ b/src/vim/syntax/PKGBUILD.vim @@ -6,13 +6,13 @@ " For version 5.x: Clear all syntax items " For version 6.x: Quit when a syntax file was already loaded -if version < 600 +if v:version < 600 syntax clear -elseif exists("b:current_syntax") +elseif exists('b:current_syntax') finish endif -let b:main_syntax = "sh" +let b:main_syntax = 'sh' let b:is_bash = 1 runtime! syntax/sh.vim @@ -330,6 +330,6 @@ hi def link pbDate Special "syntax include @SHELL syntax/sh.vim "syntax region BUILD start=/^build()/ end=/^}/ contains=@SHELL -"let b:current_syntax = "PKGBUILD" +"let b:current_syntax = 'PKGBUILD' " vim: ft=vim