]> git.proxmox.com Git - mirror_qemu.git/commit - qapi/authz.json
schemas: Add vim modeline
authorAndrea Bolognani <abologna@redhat.com>
Wed, 29 Jul 2020 18:50:24 +0000 (20:50 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Mon, 3 Aug 2020 06:28:08 +0000 (08:28 +0200)
commitf7160f32186b4ae1e1327e3bd05060fffec8f9ae
treef6461a9fe688f87c9959f8f8f070abe4cd30e6f2
parentfbeed197611bda439968e68a42d8efadb2e60f81
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>
35 files changed:
docs/interop/firmware.json
docs/interop/vhost-user.json
qapi/authz.json
qapi/block-core.json
qapi/block.json
qapi/char.json
qapi/common.json
qapi/control.json
qapi/crypto.json
qapi/dump.json
qapi/error.json
qapi/introspect.json
qapi/job.json
qapi/machine-target.json
qapi/machine.json
qapi/migration.json
qapi/misc-target.json
qapi/misc.json
qapi/net.json
qapi/qapi-schema.json
qapi/qdev.json
qapi/qom.json
qapi/rdma.json
qapi/rocker.json
qapi/run-state.json
qapi/sockets.json
qapi/tpm.json
qapi/transaction.json
qapi/ui.json
qga/qapi-schema.json
storage-daemon/qapi/qapi-schema.json
tests/qapi-schema/doc-good.json
tests/qapi-schema/include/sub-module.json
tests/qapi-schema/qapi-schema-test.json
tests/qapi-schema/sub-sub-module.json