feat(regex): detect %-style (LaTeX/Matlab) comments - #5
Merged
Merged
Conversation
Add % to the default taskvision.regex.regex comment-prefix alternation so TODO/FIXME tags in LaTeX/Matlab/Erlang % comments are detected. Sync the reset-to-default command and the repro stub, add a QUnit case asserting % TODO fix this is matched, and record a CHANGELOG entry. Fixes #3 Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
# Conflicts: # agent/tasks.md # agent/timeline.md # reproduce_issue_v9.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
%to the defaulttaskvision.regex.regexcomment-prefix alternation soTODO/FIXME(and other tags) are detected in%-style comments used by LaTeX, Matlab and Erlang (e.g.% TODO,% FIXME).Root cause
The default detection regex lacked
%in its comment-prefix group:src/config.jsreads this package.json default (no hardcoded fallback), so%-prefixed comments were never matched.Changes
%to thetaskvision.regex.regexdefault →(//|#|<!--|;|/\*|%|^|^[ \t]*(-|\d+.))\s*($TAGS).% TODO fix this/% FIXMEare detected and that///#still work.Unreleasedentry.AGENTS.md.Verification
npm test→ 120 passing, 0 failing (was 119; new%-comment case passes)npm run webpack→ build succeededpackage.jsonvalidated as valid JSON with the updated defaultFixes #3
Co-authored-by: Copilot App 223556219+Copilot@users.noreply.github.com