From patchwork Tue Sep 4 07:03:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Krempa X-Patchwork-Id: 10586833 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0ED2C920 for ; Tue, 4 Sep 2018 07:04:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F08BB2900C for ; Tue, 4 Sep 2018 07:04:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E23BD29010; Tue, 4 Sep 2018 07:04:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 52F8A2900C for ; Tue, 4 Sep 2018 07:04:51 +0000 (UTC) Received: from localhost ([::1]:49138 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fx5OM-0000uN-NP for patchwork-qemu-devel@patchwork.kernel.org; Tue, 04 Sep 2018 03:04:50 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59102) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fx5NA-00007d-1m for qemu-devel@nongnu.org; Tue, 04 Sep 2018 03:03:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fx5N5-0005OK-He for qemu-devel@nongnu.org; Tue, 04 Sep 2018 03:03:35 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:44744 helo=mx1.redhat.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fx5N5-0005JW-85 for qemu-devel@nongnu.org; Tue, 04 Sep 2018 03:03:31 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5F85940216E6 for ; Tue, 4 Sep 2018 07:03:26 +0000 (UTC) Received: from andariel.redhat.com (ovpn-204-147.brq.redhat.com [10.40.204.147]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1E4DF2166BA1; Tue, 4 Sep 2018 07:03:24 +0000 (UTC) From: Peter Krempa To: qemu-devel@nongnu.org Date: Tue, 4 Sep 2018 09:03:10 +0200 Message-Id: <1f7db2e27758f26d4c10f7a8ed1d8232635f6909.1536044449.git.pkrempa@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Tue, 04 Sep 2018 07:03:26 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Tue, 04 Sep 2018 07:03:26 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'pkrempa@redhat.com' RCPT:'' X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 66.187.233.73 Subject: [Qemu-devel] [PATCH] qapi: Add vim magic modelines for qapi definitions X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Krempa , Markus Armbruster Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP The files have a json suffix but look terrible with json syntax hilighting enabled. Add a magic modeline for vim to switch to python file format for hilighting similarly to the emacs modeline already present. Signed-off-by: Peter Krempa --- qapi/block-core.json | 1 + qapi/block.json | 1 + qapi/char.json | 1 + qapi/common.json | 1 + qapi/crypto.json | 1 + qapi/introspect.json | 1 + qapi/job.json | 1 + qapi/migration.json | 1 + qapi/misc.json | 1 + qapi/net.json | 1 + qapi/qapi-schema.json | 1 + qapi/rocker.json | 1 + qapi/run-state.json | 1 + qapi/sockets.json | 1 + qapi/tpm.json | 1 + qapi/trace.json | 1 + qapi/transaction.json | 1 + qapi/ui.json | 1 + 18 files changed, 18 insertions(+) diff --git a/qapi/block-core.json b/qapi/block-core.json index 4c7a37afdc..e75bc8dd03 100644 --- a/qapi/block-core.json +++ b/qapi/block-core.json @@ -1,4 +1,5 @@ # -*- Mode: Python -*- +# vim: ft=python ## # == Block core (VM unrelated) diff --git a/qapi/block.json b/qapi/block.json index 11f01f28ef..f94ab0c09f 100644 --- a/qapi/block.json +++ b/qapi/block.json @@ -1,4 +1,5 @@ # -*- Mode: Python -*- +# vim: ft=python ## # = Block devices diff --git a/qapi/char.json b/qapi/char.json index b7b2a05766..d167f74699 100644 --- a/qapi/char.json +++ b/qapi/char.json @@ -1,4 +1,5 @@ # -*- Mode: Python -*- +# vim: ft=python # ## diff --git a/qapi/common.json b/qapi/common.json index c367adc4b6..5a3a71a5bf 100644 --- a/qapi/common.json +++ b/qapi/common.json @@ -1,4 +1,5 @@ # -*- Mode: Python -*- +# vim: ft=python ## # = Common data types diff --git a/qapi/crypto.json b/qapi/crypto.json index a51b434412..6ccb97079b 100644 --- a/qapi/crypto.json +++ b/qapi/crypto.json @@ -1,4 +1,5 @@ # -*- Mode: Python -*- +# vim: ft=python # ## diff --git a/qapi/introspect.json b/qapi/introspect.json index 3d22166b2b..ff6fb9fe52 100644 --- a/qapi/introspect.json +++ b/qapi/introspect.json @@ -1,4 +1,5 @@ # -*- Mode: Python -*- +# vim: ft=python # # Copyright (C) 2015 Red Hat, Inc. # diff --git a/qapi/job.json b/qapi/job.json index a121b615fb..ddef257f7e 100644 --- a/qapi/job.json +++ b/qapi/job.json @@ -1,4 +1,5 @@ # -*- Mode: Python -*- +# vim: ft=python ## # == Background jobs diff --git a/qapi/migration.json b/qapi/migration.json index f62d3f9a4b..17b0e00252 100644 --- a/qapi/migration.json +++ b/qapi/migration.json @@ -1,4 +1,5 @@ # -*- Mode: Python -*- +# vim: ft=python # ## diff --git a/qapi/misc.json b/qapi/misc.json index d450cfef21..2f04983517 100644 --- a/qapi/misc.json +++ b/qapi/misc.json @@ -1,4 +1,5 @@ # -*- Mode: Python -*- +# vim: ft=python # ## diff --git a/qapi/net.json b/qapi/net.json index c86f351161..e736e1a26b 100644 --- a/qapi/net.json +++ b/qapi/net.json @@ -1,4 +1,5 @@ # -*- Mode: Python -*- +# vim: ft=python # ## diff --git a/qapi/qapi-schema.json b/qapi/qapi-schema.json index 65b6dc2f6f..09d745bdcf 100644 --- a/qapi/qapi-schema.json +++ b/qapi/qapi-schema.json @@ -1,4 +1,5 @@ # -*- Mode: Python -*- +# vim: ft=python ## # = Introduction # diff --git a/qapi/rocker.json b/qapi/rocker.json index 3587661161..8e3486592b 100644 --- a/qapi/rocker.json +++ b/qapi/rocker.json @@ -1,4 +1,5 @@ # -*- Mode: Python -*- +# vim: ft=python ## # = Rocker switch device diff --git a/qapi/run-state.json b/qapi/run-state.json index 332e44897b..704a330a6c 100644 --- a/qapi/run-state.json +++ b/qapi/run-state.json @@ -1,4 +1,5 @@ # -*- Mode: Python -*- +# vim: ft=python # ## diff --git a/qapi/sockets.json b/qapi/sockets.json index fc81d8d5e8..b335b6b872 100644 --- a/qapi/sockets.json +++ b/qapi/sockets.json @@ -1,4 +1,5 @@ # -*- Mode: Python -*- +# vim: ft=python ## # = Socket data types diff --git a/qapi/tpm.json b/qapi/tpm.json index d50deef5e9..ae7953cb04 100644 --- a/qapi/tpm.json +++ b/qapi/tpm.json @@ -1,4 +1,5 @@ # -*- Mode: Python -*- +# vim: ft=python # ## diff --git a/qapi/trace.json b/qapi/trace.json index 799b254a18..e5ffbad800 100644 --- a/qapi/trace.json +++ b/qapi/trace.json @@ -1,4 +1,5 @@ # -*- mode: python -*- +# vim: ft=python # # Copyright (C) 2011-2016 LluĂ­s Vilanova # diff --git a/qapi/transaction.json b/qapi/transaction.json index d7e4274550..588112383a 100644 --- a/qapi/transaction.json +++ b/qapi/transaction.json @@ -1,4 +1,5 @@ # -*- Mode: Python -*- +# vim: ft=python # ## diff --git a/qapi/ui.json b/qapi/ui.json index 4ca91bb45a..918ab84a5a 100644 --- a/qapi/ui.json +++ b/qapi/ui.json @@ -1,4 +1,5 @@ # -*- Mode: Python -*- +# vim: ft=python # ##