branch: externals/gtags-mode
commit b68128ab18002479e24b55b77ca5fd39e245bd94
Author: Jimmy Aguilar Mena <kratsbinov...@gmail.com>
Commit: Jimmy Aguilar Mena <kratsbinov...@gmail.com>

    Enforce shortest match for regex
    
    Fixes: #12
---
 gtags-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gtags-mode.el b/gtags-mode.el
index 89d6d29957..e63f810ab2 100644
--- a/gtags-mode.el
+++ b/gtags-mode.el
@@ -100,7 +100,7 @@ The address is absolute for remote hosts.")
   "Project Global root for this buffer.")
 
 (defconst gtags-mode--output-format-regex
-  "^\\(.+\\) \\([^ ]+\\) \\([[:digit:]]+\\) \\(.*\\)"
+  "^\\(.+?\\) \\([^ ]+\\) \\([[:digit:]]+\\) \\(.*\\)"
   "Regex to filter the output with `gtags-mode--output-format-options'.")
 
 (defconst gtags-mode--output-format-options

Reply via email to