diff options
author | pommicket <pommicket@gmail.com> | 2023-01-03 22:57:26 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-01-03 22:57:26 -0500 |
commit | aa4f61bcaeaa7c3c028ac98a3206b41eedb59fd7 (patch) | |
tree | 78c5094ac13c7ed15c75b24f64c72370794c3359 | |
parent | 568e01c262f6e70e323b3f6c8e58b10c1e9320df (diff) |
fix handling of non-escaped $ in tags
-rw-r--r-- | tags.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 { |