summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-01-03 22:57:26 -0500
committerpommicket <pommicket@gmail.com>2023-01-03 22:57:26 -0500
commitaa4f61bcaeaa7c3c028ac98a3206b41eedb59fd7 (patch)
tree78c5094ac13c7ed15c75b24f64c72370794c3359
parent568e01c262f6e70e323b3f6c8e58b10c1e9320df (diff)
fix handling of non-escaped $ in tags
-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 {