-
Notifications
You must be signed in to change notification settings - Fork 10
Sync aho corasick #340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sync aho corasick #340
Conversation
61ff702 to
fe059fe
Compare
Refactored argument parsing for better readability and removed unused --show-skipped option. Enhanced C++ comment stripping, added variable detection, and improved search patterns for functions and attributes in C++ files. Updated skip logic to use Console for output and improved match reporting for found and possibly found items.
Joseph-Edwards
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AhoCorasick changes look good to me, and the check sync stuff seems to work for me too once I had installed rich. Please could you add rich to the dev environment. After that, I'm happy to merge
| def find_in_cpp(args, thing: str, fn: str, info: dict) -> None: | ||
| if _skip(args, thing, fn): | ||
| return | ||
| def _strip_cxx_comments(lines: list[str]) -> list[str]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it necessary to also remove comments of the following form:
/*
This is a comment
*/There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't ever use these (this is also complained about by cpplint I think), so I think the answer is "no"
fe059fe to
c98933c
Compare
|
I've added rich to the dev-environment.yml file, are we good to go? @Joseph-Edwards |
This PR updates
AhoCorasickto be better in sync with libsemigroups, and some other minor fixes, including in the check_sync script.