Kaydet (Commit) 44534763 authored tarafından Jens Carl's avatar Jens Carl Kaydeden (comit) Michael Stahl

tdf#70280 Add UNOIDL support to ctags

This supports the UNOIDL language constructs Enumeration, ElementName,
Structure, Interface, FunctioName, Service, and PropertyName.

The values are mapping to ctags as:

UNOIDL          ctags

Enumeration     e,enum
ElementName     m,member
Structure       s,struct
Interface       i,interface
FunctioName     f,function
Service         g,service
PropertyName    p,property

Change-Id: I4ca5dcb289360f7630a85bb3a62ec3b60a8a88e6
Reviewed-on: https://gerrit.libreoffice.org/40911Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMichael Stahl <mstahl@redhat.com>
üst 985474a0
......@@ -17,6 +17,15 @@ omnicppoptions="--c++-kinds=+p --fields=+iaS --extra=+q"
$ctags -h "+.hdl.hrc" --langmap=c:+.hrc.src,c++:+.hdl $saloptions $omnicppoptions \
--languages=-HTML,Java,JavaScript \
--langdef=UNOIDL \
--langmap=UNOIDL:.idl \
--regex-UNOIDL="/^[ \t]*published[ \t]*interface[ \t]*([a-zA-Z0-9]*)/\1/i,interface/" \
--regex-UNOIDL="/^[ \t]*([a-zA-Z0-9:]+)[ \t]+([a-zA-Z0-9]+)\(.*\)/\2/f,function/" \
--regex-UNOIDL="/^[ \t]*\[.*property.*\][ \t]+([a-zA-Z0-9]+)[ \t]+([a-zA-Z0-9]+);/\2/p,property/" \
--regex-UNOIDL="/^[ \t]*.*[ \t]+service[ \t]+([a-zA-Z0-9]+)$/\1/g,service/" \
--regex-UNOIDL="/^[ \t]*.*[ \t]+struct[ \t]+([a-zA-Z0-9]+)$/\1/s,struct/" \
--regex-UNOIDL="/^[ \t]*.*[ \t]+enum[ \t]+([a-zA-Z0-9]+)$/\1/e,enum/" \
--regex-UNOIDL="/^[ \t]*([a-zA-Z0-9]+)[ \t]+([a-zA-Z0-9]+);/\2/m,member/" \
-R --exclude=instdir --exclude=instdir_for_build --exclude=workdir --exclude=workdir_for_build \
--exclude=external --totals=yes ${SRCDIR:-*}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment