mirror of
https://github.com/qemu/qemu.git
synced 2024-11-27 05:43:47 +08:00
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>
This commit is contained in:
parent
fbeed19761
commit
f7160f3218
@ -1,4 +1,5 @@
|
||||
# -*- Mode: Python -*-
|
||||
# vim: filetype=python
|
||||
#
|
||||
# Copyright (C) 2018 Red Hat, Inc.
|
||||
#
|
||||
|
@ -1,4 +1,5 @@
|
||||
# -*- Mode: Python -*-
|
||||
# vim: filetype=python
|
||||
#
|
||||
# Copyright (C) 2018 Red Hat, Inc.
|
||||
#
|
||||
|
@ -1,4 +1,5 @@
|
||||
# -*- Mode: Python -*-
|
||||
# vim: filetype=python
|
||||
#
|
||||
# QAPI authz definitions
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
# -*- Mode: Python -*-
|
||||
# vim: filetype=python
|
||||
|
||||
##
|
||||
# == Block core (VM unrelated)
|
||||
|
@ -1,4 +1,5 @@
|
||||
# -*- Mode: Python -*-
|
||||
# vim: filetype=python
|
||||
|
||||
##
|
||||
# = Block devices
|
||||
|
@ -1,4 +1,5 @@
|
||||
# -*- Mode: Python -*-
|
||||
# vim: filetype=python
|
||||
#
|
||||
|
||||
##
|
||||
|
@ -1,4 +1,5 @@
|
||||
# -*- Mode: Python -*-
|
||||
# vim: filetype=python
|
||||
|
||||
##
|
||||
# = Common data types
|
||||
|
@ -1,4 +1,5 @@
|
||||
# -*- Mode: Python -*-
|
||||
# vim: filetype=python
|
||||
#
|
||||
|
||||
##
|
||||
|
@ -1,4 +1,5 @@
|
||||
# -*- Mode: Python -*-
|
||||
# vim: filetype=python
|
||||
#
|
||||
|
||||
##
|
||||
|
@ -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.
|
||||
|
@ -1,4 +1,5 @@
|
||||
# -*- Mode: Python -*-
|
||||
# vim: filetype=python
|
||||
|
||||
##
|
||||
# = QMP errors
|
||||
|
@ -1,4 +1,5 @@
|
||||
# -*- Mode: Python -*-
|
||||
# vim: filetype=python
|
||||
#
|
||||
# Copyright (C) 2015 Red Hat, Inc.
|
||||
#
|
||||
|
@ -1,4 +1,5 @@
|
||||
# -*- Mode: Python -*-
|
||||
# vim: filetype=python
|
||||
|
||||
##
|
||||
# == Background jobs
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -1,4 +1,5 @@
|
||||
# -*- Mode: Python -*-
|
||||
# vim: filetype=python
|
||||
#
|
||||
|
||||
##
|
||||
|
@ -1,4 +1,5 @@
|
||||
# -*- Mode: Python -*-
|
||||
# vim: filetype=python
|
||||
#
|
||||
|
||||
##
|
||||
|
@ -1,4 +1,5 @@
|
||||
# -*- Mode: Python -*-
|
||||
# vim: filetype=python
|
||||
#
|
||||
|
||||
##
|
||||
|
@ -1,4 +1,5 @@
|
||||
# -*- Mode: Python -*-
|
||||
# vim: filetype=python
|
||||
#
|
||||
|
||||
##
|
||||
|
@ -1,4 +1,5 @@
|
||||
# -*- Mode: Python -*-
|
||||
# vim: filetype=python
|
||||
##
|
||||
# = Introduction
|
||||
#
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -1,4 +1,5 @@
|
||||
# -*- Mode: Python -*-
|
||||
# vim: filetype=python
|
||||
#
|
||||
|
||||
##
|
||||
|
@ -1,4 +1,5 @@
|
||||
# -*- Mode: Python -*-
|
||||
# vim: filetype=python
|
||||
|
||||
##
|
||||
# = Rocker switch device
|
||||
|
@ -1,4 +1,5 @@
|
||||
# -*- Mode: Python -*-
|
||||
# vim: filetype=python
|
||||
#
|
||||
|
||||
##
|
||||
|
@ -1,4 +1,5 @@
|
||||
# -*- Mode: Python -*-
|
||||
# vim: filetype=python
|
||||
|
||||
##
|
||||
# = Socket data types
|
||||
|
@ -1,4 +1,5 @@
|
||||
# -*- Mode: Python -*-
|
||||
# vim: filetype=python
|
||||
#
|
||||
|
||||
##
|
||||
|
@ -1,4 +1,5 @@
|
||||
# -*- Mode: Python -*-
|
||||
# vim: filetype=python
|
||||
#
|
||||
|
||||
##
|
||||
|
@ -1,4 +1,5 @@
|
||||
# -*- Mode: Python -*-
|
||||
# vim: filetype=python
|
||||
#
|
||||
|
||||
##
|
||||
|
@ -1,4 +1,5 @@
|
||||
# *-*- Mode: Python -*-*
|
||||
# vim: filetype=python
|
||||
|
||||
##
|
||||
#
|
||||
|
@ -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
|
||||
|
@ -1,4 +1,6 @@
|
||||
# -*- Mode: Python -*-
|
||||
# vim: filetype=python
|
||||
#
|
||||
# Positive QAPI doc comment tests
|
||||
|
||||
{ 'pragma': { 'doc-required': true } }
|
||||
|
@ -1,4 +1,5 @@
|
||||
# *-*- Mode: Python -*-*
|
||||
# vim: filetype=python
|
||||
|
||||
# Sub-module of ../qapi-schema-test.json
|
||||
|
||||
|
@ -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.
|
||||
|
@ -1,4 +1,5 @@
|
||||
# *-*- Mode: Python -*-*
|
||||
# vim: filetype=python
|
||||
|
||||
# Sub-module of sub-module include/sub-module.json of qapi-schema-test.json
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user