From aa4f61bcaeaa7c3c028ac98a3206b41eedb59fd7 Mon Sep 17 00:00:00 2001 From: pommicket Date: Tue, 3 Jan 2023 22:57:26 -0500 Subject: fix handling of non-escaped $ in tags --- tags.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tags.c') 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 { -- cgit v1.2.3