mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
semantic/symref/grep: Don't use word boundaries
* lisp/cedet/semantic/symref/grep.el (semantic-symref-perform-search): Instead of wrapping input in word boundaries, check that the characters before and after are not word constituents.
This commit is contained in:
parent
f37d86ed0b
commit
ec13f4b344
1 changed files with 5 additions and 1 deletions
|
|
@ -158,7 +158,11 @@ This shell should support pipe redirect syntax."
|
|||
(cond ((eq (oref tool :searchtype) 'regexp)
|
||||
(oref tool searchfor))
|
||||
(t
|
||||
(concat "\\<" (oref tool searchfor) "\\>")))))
|
||||
;; Can't use the word boundaries: Grep
|
||||
;; doesn't always agrees with the language
|
||||
;; syntax on those.
|
||||
(format "\\(^\\|\\W\\)%s\\(\\W\\|$\\)"
|
||||
(oref tool searchfor))))))
|
||||
;; Misc
|
||||
(b (get-buffer-create "*Semantic SymRef*"))
|
||||
(ans nil)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue