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)
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

index 240f565397ae0e754e85976f2d4b5e3873ae8211..989f10b626d223d9bbbcdcc2036ca49c473cb700 100644 (file)
@@ -1,4 +1,5 @@
 # -*- Mode: Python -*-
+# vim: filetype=python
 #
 # Copyright (C) 2018 Red Hat, Inc.
 #
index ef8ac5941f5c8d14402566a984a0a0876d768c19..feb5fe58cad2b3f8bd3f6be57cac13358feec8ff 100644 (file)
@@ -1,4 +1,5 @@
 # -*- Mode: Python -*-
+# vim: filetype=python
 #
 # Copyright (C) 2018 Red Hat, Inc.
 #
index 1c836a3abdfe58744cb188099fffc2e66c0a289e..f3e97454267f8a4c100975d999bfe547adf69e81 100644 (file)
@@ -1,4 +1,5 @@
 # -*- Mode: Python -*-
+# vim: filetype=python
 #
 # QAPI authz definitions
 
index 49edb4fdaefcda0d4e3fc9b40aa5577a93fb8ba5..197bdc1c36da4b8e8c3609780cf611dab354b23a 100644 (file)
@@ -1,4 +1,5 @@
 # -*- Mode: Python -*-
+# vim: filetype=python
 
 ##
 # == Block core (VM unrelated)
index 2ddbfa8306aad1c2818e6d9a60381675ffc214ec..c54a393cf3a3ea816e27f934cbef7f8029015f01 100644 (file)
@@ -1,4 +1,5 @@
 # -*- Mode: Python -*-
+# vim: filetype=python
 
 ##
 # = Block devices
index daceb20f84989acf8ad5a7010cc89c6667490637..8aeedf96b2e1b92442e6fade1a73f8410d71edbd 100644 (file)
@@ -1,4 +1,5 @@
 # -*- Mode: Python -*-
+# vim: filetype=python
 #
 
 ##
index 7b9cbcd97b4b517e5ecb77c1793b25e2485556f2..716712d4b317e81c926bf4f308e869b651c05330 100644 (file)
@@ -1,4 +1,5 @@
 # -*- Mode: Python -*-
+# vim: filetype=python
 
 ##
 # = Common data types
index 6b816bb61fccf415ee913230c0f568686c530327..de51e9916c3c81b3b4741fd937e901c7441e96b3 100644 (file)
@@ -1,4 +1,5 @@
 # -*- Mode: Python -*-
+# vim: filetype=python
 #
 
 ##
index 5a68e0db258b50f31f847b6394ca7eac045411e4..bb7930d33209ccc3741eed48d1d3bb1cc480c1c7 100644 (file)
@@ -1,4 +1,5 @@
 # -*- Mode: Python -*-
+# vim: filetype=python
 #
 
 ##
index a1eed7b15c54eab8d95e6c7b4b722efee1523c93..f7c4267e3fcd4eeb34aa8957547b05c1462d60ab 100644 (file)
@@ -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.
index 3fad08f5060a86df86d82e07b1a1e5294a9bf64a..94a6502de9d2a6e4bb5f768408044e649cc74b1e 100644 (file)
@@ -1,4 +1,5 @@
 # -*- Mode: Python -*-
+# vim: filetype=python
 
 ##
 # = QMP errors
index b1aabd4cfd4f1c600a3406fd810eaf83eb784c75..944bb87a20df019bf9cc2976c6b6be96fa49e7b2 100644 (file)
@@ -1,4 +1,5 @@
 # -*- Mode: Python -*-
+# vim: filetype=python
 #
 # Copyright (C) 2015 Red Hat, Inc.
 #
index c48a0c3e341a88fce7af187a1ac260dab0fca99c..280c2f76f136dc66446863fdb1a5a95a1bd1d846 100644 (file)
@@ -1,4 +1,5 @@
 # -*- Mode: Python -*-
+# vim: filetype=python
 
 ##
 # == Background jobs
index f2c82949d80b6d63c373d84b3d3c136a6af020f9..698850cc78ded0b22d344bd9a91010ac5e58cca2 100644 (file)
@@ -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.
index daede5ab14938a79122d960fd2e6de4034c39751..481b1f07ecccac710ef84f3214b575b64a181a0c 100644 (file)
@@ -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.
index d5000558c6c940aa6e4b590c92f614139c0374b0..ea53b23dca90b886c452eaea01c0ff921f50e80d 100644 (file)
@@ -1,4 +1,5 @@
 # -*- Mode: Python -*-
+# vim: filetype=python
 #
 
 ##
index dee3b45930143c552fb29f36363fcd0ed0c8c582..1e561fa97ba239a3b8428fd868726de85f9828ce 100644 (file)
@@ -1,4 +1,5 @@
 # -*- Mode: Python -*-
+# vim: filetype=python
 #
 
 ##
index 149c92524680b3ba08e2fb954073e475655abf67..9d32820dc1b6aa5573d8691f3a8301826b7b3c0b 100644 (file)
@@ -1,4 +1,5 @@
 # -*- Mode: Python -*-
+# vim: filetype=python
 #
 
 ##
index 558d520a2f93d23ed1da02bbdfcbe864e60f2ff9..ddb113e5e5a87e6bd55c0c475d85484067d45bc6 100644 (file)
@@ -1,4 +1,5 @@
 # -*- Mode: Python -*-
+# vim: filetype=python
 #
 
 ##
index 43b0ba0dea22fe626f105cd2b7808ad6d5d2229c..f03ff91ceb517bfac00d2340c910eeae05facc03 100644 (file)
@@ -1,4 +1,5 @@
 # -*- Mode: Python -*-
+# vim: filetype=python
 ##
 # = Introduction
 #
index f4ed9735c434486331d7b76592967cf180d397c9..13254529bfabd726b6bcf0bfe3590419ebe34bbf 100644 (file)
@@ -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.
index 8abe998962b369c390e41706126a4b4bc07843e5..0b0b92944ba0376a79adce0a17b5b761df80c3db 100644 (file)
@@ -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.
index b58105b1b6d7945d05dc8363ce5a78d72e2c0494..a1d2175a8b3614d237f0cfb0a57f2f680a57cff9 100644 (file)
@@ -1,4 +1,5 @@
 # -*- Mode: Python -*-
+# vim: filetype=python
 #
 
 ##
index 52597db491a8082306b389defb78a31778619f69..b48e49a89bb3a4741621281b938dd121cc9ce7d0 100644 (file)
@@ -1,4 +1,5 @@
 # -*- Mode: Python -*-
+# vim: filetype=python
 
 ##
 # = Rocker switch device
index 2e2290774007dfc78a1adeec806107dafbd54b4c..7cc9f96a5bcf42ea4a42ca53777246b20acf67fc 100644 (file)
@@ -1,4 +1,5 @@
 # -*- Mode: Python -*-
+# vim: filetype=python
 #
 
 ##
index cbd6ef35d0afad6fa5f67c0a955571a1b0787853..c0c640a5b05adeee11f8f2f954796e513e547807 100644 (file)
@@ -1,4 +1,5 @@
 # -*- Mode: Python -*-
+# vim: filetype=python
 
 ##
 # = Socket data types
index dc1f081739988697b1a9c1a1cec736ba2234efb7..6a10c9ed8d27023eacfc48499c534920582820f9 100644 (file)
@@ -1,4 +1,5 @@
 # -*- Mode: Python -*-
+# vim: filetype=python
 #
 
 ##
index b6c11158f0b63f847ecb6cd655f8a79d593a8cf9..15ddebdbc360b79d4663d96c10e2df00cdace52d 100644 (file)
@@ -1,4 +1,5 @@
 # -*- Mode: Python -*-
+# vim: filetype=python
 #
 
 ##
index 1568cfeaade9d1a609ba7a8d4fef25c7c77b889d..9d6721037f5b76427b7fba3e703408b14da4cd7b 100644 (file)
@@ -1,4 +1,5 @@
 # -*- Mode: Python -*-
+# vim: filetype=python
 #
 
 ##
index 408a662ea58f329f643dcdc986014afb51433776..b1e9ed836de77ed9684a41391e2f45b2e6f3238e 100644 (file)
@@ -1,4 +1,5 @@
 # *-*- Mode: Python -*-*
+# vim: filetype=python
 
 ##
 #
index 14f4f8fe61195608da823e937babb248bf78f894..6100d1f0c974ff5bc889169ebc780d7922aea133 100644 (file)
@@ -1,4 +1,5 @@
 # -*- Mode: Python -*-
+# vim: filetype=python
 
 # Note that modules are shared with the QEMU main schema under the assumption
 # that the storage daemon schema is a subset of the main schema. For the shared
index ddd89d12334e56cbe4962f721f6bee73b2f22e1d..9da72a1f556e0dedcbc43b7d0eabb33eea895697 100644 (file)
@@ -1,4 +1,6 @@
 # -*- Mode: Python -*-
+# vim: filetype=python
+#
 # Positive QAPI doc comment tests
 
 { 'pragma': { 'doc-required': true } }
index afdb267228fa332a894a978151312cc07d8bfe85..b9f7b9bb566889cbd7756ca40bec3cabb9105a8f 100644 (file)
@@ -1,4 +1,5 @@
 # *-*- Mode: Python -*-*
+# vim: filetype=python
 
 # Sub-module of ../qapi-schema-test.json
 
index 6b1f05afa7b8c627f2be4440bc84e99c1823e344..3a9f2cbb33366b287e1df664a4f7d3ee39c7b826 100644 (file)
@@ -1,4 +1,5 @@
 # *-*- Mode: Python -*-*
+# vim: filetype=python
 
 # This file is a stress test of supported qapi constructs that must
 # parse and compile correctly.
index 524ef9b83f59b9da5be90ad0a4b45562119f7ade..94f36ec0b185acd9f4c8b932e82e461ab6d4c027 100644 (file)
@@ -1,4 +1,5 @@
 # *-*- Mode: Python -*-*
+# vim: filetype=python
 
 # Sub-module of sub-module include/sub-module.json of qapi-schema-test.json