How to add comments to an Exuberant Ctags config file?

后端 未结 4 1912
梦如初夏
梦如初夏 2021-02-03 21:44

What character can I use to put comments in an Exuberant Ctags .ctags file?

I would like to add comments with explanations, and perhaps to disable some rege

4条回答
  •  太阳男子
    2021-02-03 22:05

    As @joeytwiddle points out, comments are not supported by the parser, but there is a work-around.

    Example .ctags file:

    --regex-C=/$x/x/x/e/ The ctags parser currently doesn't support comments
    --regex-C=/$x/x/x/e/ This is a work-around which works with '/' characters
    --regex-C=/$x/x/x/e/ http://stackoverflow.com/questions/10973224/how-to-add-comments-to-an-exuberant-ctags-config-file
    --regex-C=/$x/x/x/e/ 
    --regex-C=/$x/x/x/e/ You can add whatever comment text you want here.
    

提交回复
热议问题