Support COTA. Closes #131

This commit is contained in:
Ian Renton
2026-08-31 21:17:55 +01:00
parent a33f02491d
commit b0caf697ae
13 changed files with 81 additions and 18 deletions
+1 -1
View File
@@ -270,7 +270,7 @@ class Spot:
sig = self.sig_refs[0].sig.upper()
regex = get_ref_regex_for_sig(sig)
if regex:
all_comment_ref_matches = re.finditer(r"(^|\W)(" + regex + r")(^|\W)", self.comment, re.IGNORECASE)
all_comment_ref_matches = re.finditer(r"(^|\W)(" + regex + r")($|\W)", self.comment, re.IGNORECASE)
for ref_match in all_comment_ref_matches:
self._append_sig_ref_if_missing(SIGRef(id=ref_match.group(2).upper(), sig=sig))