xref: /Universal-ctags/optlib/qemuhx.ctags (revision 741a40ef2d94b5f032d5be3db709e40a45a78a9e)
1e5798119SMasatake YAMATO#
2*741a40efSMasatake YAMATO#  Copyright (c) 2017, 2021, Red Hat, Inc.
3*741a40efSMasatake YAMATO#  Copyright (c) 2017, 2021, Masatake YAMATO
4e5798119SMasatake YAMATO#
5e5798119SMasatake YAMATO#  Author: Masatake YAMATO <yamato@redhat.com>
6e5798119SMasatake YAMATO#
7e5798119SMasatake YAMATO# This program is free software; you can redistribute it and/or
8e5798119SMasatake YAMATO# modify it under the terms of the GNU General Public License
9e5798119SMasatake YAMATO# as published by the Free Software Foundation; either version 2
10e5798119SMasatake YAMATO# of the License, or (at your option) any later version.
11e5798119SMasatake YAMATO#
12e5798119SMasatake YAMATO# This program is distributed in the hope that it will be useful,
13e5798119SMasatake YAMATO# but WITHOUT ANY WARRANTY; without even the implied warranty of
14e5798119SMasatake YAMATO# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15e5798119SMasatake YAMATO# GNU General Public License for more details.
16e5798119SMasatake YAMATO#
17e5798119SMasatake YAMATO# You should have received a copy of the GNU General Public License
18e5798119SMasatake YAMATO# along with this program; if not, write to the Free Software
19e5798119SMasatake YAMATO# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
20e5798119SMasatake YAMATO# USA.
21e5798119SMasatake YAMATO#
22e5798119SMasatake YAMATO#
23e5798119SMasatake YAMATO# `hxtool' is a tool used in QEMU build process.
24ebdbd8e2SK.Takata# It converts an input file to both a C header file code and Texinfo document.
25e5798119SMasatake YAMATO#
26e5798119SMasatake YAMATO# `.hx' is the suffix for the tool.
27e5798119SMasatake YAMATO#
282d422213SMasatake YAMATO# This optlib is a testbed for --_extradef option and `extra' regex long flag.
29*741a40efSMasatake YAMATO# This optlib is a testbed for optscript.
30e5798119SMasatake YAMATO#
31e5798119SMasatake YAMATO
32e5798119SMasatake YAMATO--langdef=QemuHX
33b7c2728dSMasatake YAMATO--kinddef-QemuHX=q,qmp,QEMU Management Protocol dispatch table entries
34e5798119SMasatake YAMATO--kinddef-QemuHX=i,infoitem,item in texinfo doc
35e5798119SMasatake YAMATO--map-QemuHX=+.hx
362d422213SMasatake YAMATO--_extradef-QemuHX=funcmap,Include mapping SQMP to C function name
37e5798119SMasatake YAMATO--extras-QemuHX=+{funcmap}
38e5798119SMasatake YAMATO
39*741a40efSMasatake YAMATO--mline-regex-QemuHX=/^SQMP[[:space:]]([-a-z_0-9A-Z]+)[[:space:]]---/\1/q/{mgroup=1}
40*741a40efSMasatake YAMATO--mline-regex-QemuHX=/^SQMP[[:space:]]([-a-z_0-9A-Z]+)[[:space:]]---/qmp_\1/q/{mgroup=1}{_extra=funcmap}{{
41*741a40efSMasatake YAMATO    . :name dup (-_) _tr!
42*741a40efSMasatake YAMATO    . exch name:
43*741a40efSMasatake YAMATO}}
44*741a40efSMasatake YAMATO--regex-QemuHX=/^@item[[:space:]]{1,}([-.a-z_0-9A-Z]{1,})/\1/i/
45