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]
+-------------------------------------------
| :gtags_parser=C\:$library:\
| :gtags_parser=C++\:$library:
$ gtags --conf=gtags_parser
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