[code] [ctags][PATCH 4/4] Support {tagfile} containing spaces

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

The name of the file where {tagname} is defined may contain spaces.

---
 init.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/init.lua b/init.lua
index 5f6999b..b36c1ad 100644
--- a/init.lua
+++ b/init.lua
@@ -40,7 +40,7 @@ M.CTAGS = 'ctags'
 local function find_tags(tag)
   -- TODO: binary search?
   local tags = {}
-  local patt = '^('..tag..'%S*)\t(%S+)\t(.-);"\t?(.*)$'
+  local patt = '^('..tag..'%S*)\t([^\t]+)\t(.-);"\t?(.*)$'
   -- Determine the tag files to search in.
   local tag_files = {}
   local tag_file = ((buffer.filename or ''):match('^.+[/\\]') or
-- 
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:51 EDT

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