[code] [ctags][PATCH 0/4] Small enhancements to Textadept Ctags module

From: Jens Remus <jens.remus.att.gmail.com>
Date: Thu, 27 Jul 2017 13:59:47 +0200

Hello Mitchell,

following are some small enhancements to your Textadept Ctags module
that I made to get aground some minor issues that I ran into:

1. Add LICENSE file from Textadept, as previosuly discussed with you
   in "[ctags] Clarification of license" to use this as base for my
   Cscope module. See my separate thread "[textadept] Textadept module
   for Cscope based on Mitchell's Ctags module" for the Cscope module.

2. I did not want to put the Ctags executable in the PATH under Windows
   so I needed a way to specify the full path in my Textadept
   configuration. I therefore introduced the module variable CTAGS to
   allow the user to specify the path and name.

3. I ran into some issue that a prorietary utility I am using generates
   tag files with {tagaddress} that do not contain ^ and $ in their
   regular expression. The Exuberant Ctags file format (see
   http://ctags.sourceforge.net/FORMAT) does not mandate the regular
   expression search between // to contain those anchors. So I changed
   the code to make them optional.

   Actually it looks like the TA Ctags module does not perform a regular
   expression search at all, otherwise it could simply keep the anchors.
   Maybe you can guide me how to resolve that?

   Also the above mentioned file format mentions the possibility for
   multiple searches in the {tagaddress} although I am not sure whether
   that is really standard and used anywhere.
   Example: "389;/struct foo/;/char *s;/"

4. I ran into an issue when tagged files contain spaces in their names.
   The file format (see point 3) is not really clear how to handle that.
   I changed the expression pattern for {tagfile} to allow any character
   except for tab.

I hope you don't mind that I cloned your repository on GitHub, which
allows me to add it as a submodule in my .textadept configuration.
https://github.com/jremus/ta-ctags/tree/jremus

Thanks and regards,
Jens

Jens Remus (4):
  Add LICENSE file stating that this module is under MIT license
  Make Ctags executable configurable
  Handle {tagaddress} containing regular expression search without ^ and
    $
  Support {tagfile} containing spaces

 LICENSE | 21 +++++++++++++++++++++
 init.lua | 9 ++++++---
 2 files changed, 27 insertions(+), 3 deletions(-)
 create mode 100644 LICENSE

-- 
2.1.4
-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Thu 27 Jul 2017 - 07:59:47 EDT

This archive was generated by hypermail 2.2.0 : Fri 28 Jul 2017 - 06:36:44 EDT