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