Permalink
Browse files

Make output look more like regular etags

  • Loading branch information...
1 parent dbc6bec commit 1cbcf7126180b0131b0db5c30c35de6dcbe10a63 @nickg committed Mar 7, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 clang-tags.c
View
@@ -58,8 +58,8 @@ static void emit_tag(const char *name, const char *text,
static bool end_search_char(char ch)
{
- return ch == '(' || ch == '{' || ch == '\n' || ch == '\r'
- || ch == ';' || ch == '=';
+ return ch == ')' || ch == '{' || ch == '\n' || ch == '\r'
+ || ch == ';';
}
static char *find_search_text(const char *content,
@@ -82,7 +82,7 @@ static char *find_search_text(const char *content,
while (isspace(*end))
end--;
- const size_t nchars = end - start;
+ const size_t nchars = end - start + 1;
char *buf = malloc(nchars + 1);
assert(buf != NULL);

0 comments on commit 1cbcf71

Please sign in to comment.