summaryrefslogtreecommitdiffstats
path: root/qapi/machine.json
diff options
context:
space:
mode:
authorAndrea Bolognani2020-07-29 20:50:24 +0200
committerMarkus Armbruster2020-08-03 08:28:08 +0200
commitf7160f32186b4ae1e1327e3bd05060fffec8f9ae (patch)
treef6461a9fe688f87c9959f8f8f070abe4cd30e6f2 /qapi/machine.json
parentqapi: Delete unwanted indentation of top-level expressions (diff)
downloadqemu-f7160f32186b4ae1e1327e3bd05060fffec8f9ae.tar.gz
qemu-f7160f32186b4ae1e1327e3bd05060fffec8f9ae.tar.xz
qemu-f7160f32186b4ae1e1327e3bd05060fffec8f9ae.zip
schemas: Add vim modeline
The various schemas included in QEMU use a JSON-based format which is, however, strictly speaking not valid JSON. As a consequence, when vim tries to apply syntax highlight rules for JSON (as guessed from the file name), the result is an unreadable mess which mostly consist of red markers pointing out supposed errors in, well, pretty much everything. Using Python syntax highlighting produces much better results, and in fact these files already start with specially-formatted comments that instruct Emacs to process them as if they were Python files. This commit adds the equivalent special comments for vim. Signed-off-by: Andrea Bolognani <abologna@redhat.com> Message-Id: <20200729185024.121766-1-abologna@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Reviewed-by: John Snow <jsnow@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'qapi/machine.json')
-rw-r--r--qapi/machine.json1
1 files changed, 1 insertions, 0 deletions
diff --git a/qapi/machine.json b/qapi/machine.json
index daede5ab14..481b1f07ec 100644
--- a/qapi/machine.json
+++ b/qapi/machine.json
@@ -1,4 +1,5 @@
# -*- Mode: Python -*-
+# vim: filetype=python
#
# This work is licensed under the terms of the GNU GPL, version 2 or later.
# See the COPYING file in the top-level directory.