projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b7e733
)
(consider_token): check C++ `operator' only when the token len is long
author
Francesco Potortì
<pot@gnu.org>
Wed, 3 Sep 2003 14:20:49 +0000
(14:20 +0000)
committer
Francesco Potortì
<pot@gnu.org>
Wed, 3 Sep 2003 14:20:49 +0000
(14:20 +0000)
enough.
lib-src/etags.c
patch
|
blob
|
history
diff --git
a/lib-src/etags.c
b/lib-src/etags.c
index 4a10a6c20011d86a2de52c6a93ef207fda173894..e9fab1be3ee51b6a292f4f6ef085733522916714 100644
(file)
--- a/
lib-src/etags.c
+++ b/
lib-src/etags.c
@@
-3116,7
+3116,7
@@
consider_token (str, len, c, c_extp, cblev, parlev, is_func_or_var)
fvdef = vignore;
return FALSE;
}
- if (strneq (str+len-10, "::operator", 10))
+ if (
len >= 10 &&
strneq (str+len-10, "::operator", 10))
{
if (*c_extp & C_AUTO) /* automatic detection of C++ */
*c_extp = (*c_extp | C_PLPL) & ~C_AUTO;