https://bugs.kde.org/show_bug.cgi?id=361909
Bug ID: 361909
Summary: add extra options to ctags command for project plugin
Product: kate
Version: unspecified
Platform: Gentoo Packages
OS: Linux
Status: UNCONFIRMED
Severity: wishlist
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
Should be nice to be able to add extra options to ctags command for some
projects.
For example, in a my use case I have a bash project with some *.cfg files where
I define "globals" variables that will be sourced by others scripts and that I
would like to be indexed for completion, and some *.awk scripts that I want to
exclude by indexing since I don't need awk functions outside their script.
In this example, my project looks like:
{
"name": "Bash Project"
, "files": [{"directory": ".", "filters": ["*.sh", "*.profile", "*.func",
"*.awk", "*.cfg"], "recursive": 1}]
, "ctags_options": [
"--langdef=Cfg"
, "--langmap=Cfg:.cfg\(*.profile\)"
,
"--regex-Cfg=/^[[:space:]]*((declare|local)[[:space:]]+(-[a-z]+[[:space:]]+))?([[:alpha:]][[:alnum:]]+(\\[[[:alnum:]]+])?)=/\\4/v,variables/"
, "--exclude=*.awk"
]
}
Reproducible: Always
--
You are receiving this mail because:
You are watching all bug changes.