bug-global
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[RFC] Variable substitution in gtags.conf


From: Shigio YAMAGUCHI
Subject: [RFC] Variable substitution in gtags.conf
Date: Mon, 23 Nov 2015 15:39:19 +0900

Hi,
I'm thinking enabling variable substitution in gtags.conf.
It is simillar to sh(1).

'$name' is replaced with the value of variable 'name'.

Example1: Making meaning clear

[gtags.conf]
+-------------------------------------------
|default:tc=definitions:tc=main\
|definitions:\
| fgcolor=32:\
| bgcolor=44:
|main:\
| :GREP_COLOR='${fgcolor};${bgcolor};4':

$ gtags --conf=fgcolor
32
$ gtags --conf=bgcolor
44
$ gtags --conf=GREP_COLOR
'32;44;4'

Example2: Removal of repeats of same definition

[gtags.conf]
+-------------------------------------------
|default:library=/usr/local/lib/gtags/exuberant-ctags.la:\
|       :gtags_parser=C\:$library:\
|       :gtags_parser=C++\:$library:

$ gtags --conf=gtags_parser
C:/usr/local/lib/gtags/exuberant-ctags.la,C++:/usr/local/lib/gtags/exuberant-ctags.la

Is it useful?
Is there any problem?

Regards,
Shigio


--
Shigio YAMAGUCHI <address@hidden>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3

reply via email to

[Prev in Thread] Current Thread [Next in Thread]