summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tags.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tags.c b/tags.c
index b8c986f..0326735 100644
--- a/tags.c
+++ b/tags.c
@@ -297,7 +297,9 @@ top:;
if (*in == '\\' && in[1]) {
*out++ = in[1];
in += 2;
- } else if (*in == '$') {
+ } else
+ // NOTE: ctags-universal doesn't escape $ when it's not at the end of the pattern
+ if (*in == '$' && in[1] == 0) {
end_anchored = true;
break;
} else {