[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#15920: 24.3; [PATCH] etags doesn't recognize functions with [<=>] in
From: |
Oleh |
Subject: |
bug#15920: 24.3; [PATCH] etags doesn't recognize functions with [<=>] in them. |
Date: |
Mon, 18 Nov 2013 18:12:18 +0100 |
Hi all,
While functions with name like `string=' or `string>' are present in
TAGS generated by etags, `etags-tags-completion-table' doesn't recognize
them. It's fixed by a tweak in the regex it uses. I attach the patch.
regards,
Oleh
>From 8ba84e883d68d0d7d83bdb8a96f6b6c42ba52ffe Mon Sep 17 00:00:00 2001
From: Oleh Krehel <ohwoeowho@gmail.com>
Date: Mon, 18 Nov 2013 18:06:38 +0100
Subject: [PATCH] lisp/progmodes/etags.el (etags-tags-completion-table): add
[<=>] to tag name regex.
---
lisp/progmodes/etags.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lisp/progmodes/etags.el b/lisp/progmodes/etags.el
index a7b7e63..7556add 100644
--- a/lisp/progmodes/etags.el
+++ b/lisp/progmodes/etags.el
@@ -1285,8 +1285,8 @@ buffer-local values of tags table format variables."
;; \6 is the line to start searching at;
;; \7 is the char to start searching at.
(while (re-search-forward
- "^\\(\\([^\177]+[^-a-zA-Z0-9_+*$:\177]+\\)?\
-\\([-a-zA-Z0-9_+*$?:]+\\)[^-a-zA-Z0-9_+*$?:\177]*\\)\177\
+ "^\\(\\([^\177]+[^-<=>a-zA-Z0-9_+*$:\177]+\\)?\
+\\([-<=>a-zA-Z0-9_+*$?:]+\\)[^-<=>a-zA-Z0-9_+*$?:\177]*\\)\177\
\\(\\([^\n\001]+\\)\001\\)?\\([0-9]+\\)?,\\([0-9]+\\)?\n"
nil t)
(intern (prog1 (if (match-beginning 5)
--
1.8.4
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#15920: 24.3; [PATCH] etags doesn't recognize functions with [<=>] in them.,
Oleh <=