fix: Handle Lisp semicolon comments in watch.py

This commit is contained in:
Matteo Landi (aider) 2025-03-26 13:01:53 +01:00
parent 7d5f1143af
commit fab713a6a8

View file

@ -262,7 +262,7 @@ class FileWatcher:
line_nums.append(i)
comments.append(comment)
comment = comment.lower()
comment = comment.lstrip("/#-")
comment = comment.lstrip("/#-;") # Added semicolon for Lisp comments
comment = comment.strip()
if comment.startswith("ai!") or comment.endswith("ai!"):
has_action = "!"