From patchwork Thu Jan 17 03:13:55 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: 961 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 F1333A9F9514 for ; Thu, 17 Jan 2019 03:14:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on apollo X-Spam-Level: X-Spam-Status: No, score=-3.8 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_LOW=-0.7 autolearn=ham autolearn_force=no version=3.4.2 X-Spam-BL-Results: [127.0.0.10, 127.0.0.14] [127.0.0.10] [127.0.9.1] Received: from orion.archlinux.org (orion.archlinux.org [88.198.91.70]) by apollo.archlinux.org (Postfix) with ESMTPS for ; Thu, 17 Jan 2019 03:14:22 +0000 (UTC) Received: from orion.archlinux.org (localhost [127.0.0.1]) by orion.archlinux.org (Postfix) with ESMTP id DB35610055E95A; 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:20 +0000 (UTC) Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id B5C532E79A; Thu, 17 Jan 2019 03:14:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=archlinux.org; s=luna2; t=1547694860; bh=MHJ7PUWaPhlKuYjyPtZXTQoo0zkTaSaYOrSnl78pedU=; h=From:To:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe; b=iiSHSdP2PgxtO7f5UpxB6dpWVnwmAXToH72UATGExGYlsBfdd4whnzDR9EXNu7OpZ HeU3pp8a/qM3gqDsHW5uqnx417sYXtlrHVr6HrLB3ce+kxbJjaZXH27Xv/kp89/nOW VNzNJYwicfAkWufd58AUPowALA7Ng8zxyuIyonSG1HvFSUWlFArS5/xE+ztsjkyZVv y8WhbK0zMDrx4QvA+apLqv9NdCHaO0VQMQKoLG0pHeV/XzJwxG5PxDvgQT4UVve9RP V8DCnNTLrS6DZ6waZQnlFXGKbNvCxVquM+VHCGSRZc40Uq2aYi9gOe5PfeCOcXt6JW k57fveEFBTea0LhDq3t1xAlPYUGDAlkbTaUijZfpn5PRZx+GfTrf+n0MgcSwdBMHlr SrH4q5m/RBL5RZtqhoHvnj6MXyQVqTXroLj25pzKQZbKt/jKw6hQD+IWhxdsdVYJol FvpIFpmDyybUReuFFtHZcLQU90Fz4lLmZtSxD+4zhawMKjPlTOGo/Vqi8IcxOKKxk9 A2fV7D1nFndDpLq/de95iJSAic06xPEboUJYGbxWmQmMEm1NbfAOf6dNc46q5N/knk gtP7+G5FoywyP1CwBlk2HkEwt5q+O3QHn3/7pckhJPUUX9bQSHZaJjJEh9tPoaDr/p vmCm+NbzlqsxfqSQtfyWuM9Y= Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id E94432E78B for ; Thu, 17 Jan 2019 03:14:18 +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:18 +0000 (UTC) Received: from orion.archlinux.org (localhost [127.0.0.1]) by orion.archlinux.org (Postfix) with ESMTP id B8B9810055E945 for ; Thu, 17 Jan 2019 03:14:17 +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 3EAC010055E942 for ; Thu, 17 Jan 2019 03:14:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=archlinux.org; s=orion; t=1547694857; bh=MHJ7PUWaPhlKuYjyPtZXTQoo0zkTaSaYOrSnl78pedU=; h=From:To:Subject:Date:In-Reply-To:References; b=b2gQrd95mNbL4RXaW3M1bKTEePSLcrFGttX/KeN8Wt8QULOjk8J60JSYiOh6PHcY1 m/HaIiFeAN5AyRPcULMSb+FDumnCOwUs226BuTC3LhyKTUzpHEljJflkfGosg64V58 gc1P7KolbgEghmdDx+LEGVdnHTMaE7h8pmXNGrcKibRLXJiDt+aPk9Eu5XBjXe2f57 8Nq2PQDSCDfnlb5IU5dFuUGQOF4gFIqc8Uz+gGBCH53Lga2+Harm7AH5B9l+hhCHGF 2W81O707GJDDc6vcge0FuybfyBsNXWXxwSOwQtwVBwjqEg9VHIGPd7hh3LZf3oxFRR WwBNgpKti0FCtagWk2hQTUmN6iZp3Y1PC1w8Avc0ZSUQ6nUtQDJ0JO+uT+6mEfnhYW riTHhHdFtFkKgcuYizBYUejk5LZhM/3rSUZaOTl1Lv9OPJmlL5+VtyXLFRmgeOHCVh zO89SJkETe+YysbS+2zZrbxoC2+TCFFO1oWlJoTjxxToCqRPBHVLL8PrgXCXMhyJjJ LMiPWLL8yOManp2XyUcl8NGXcaobn1fQHT7fycJ9efRLfiBcg3qIFWdqzERQTh6tj5 Gmd6WsHtaAm26W8m55i+Cp0fF1sGtYxgnLeUDg22HdH/V/sY8lo7sR+1LQ1PugKrhA Qg0lLkNmQ+KVZVxdRG2xZEdA= From: "Daniel M. Capella" To: pacman-contrib@lists.archlinux.org Subject: [PATCH 6/6] Vim: Cleanup Date: Wed, 16 Jan 2019 22:13:55 -0500 Message-Id: <20190117031355.7831-7-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 | 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 -" Last Change: 2007/05/08 -" Version Info: PKGBUILD-0.2 (colorphobic) +" Language: Arch Linux package build description file +" Original Author: Alessio 'mOLOk' Bolognino " 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