Skip to content

Review src/common/regexp.cpp#216

Merged
janrysavy merged 1 commit intocomments-translation-v2from
codex/common-regexp-cpp-review
Apr 2, 2026
Merged

Review src/common/regexp.cpp#216
janrysavy merged 1 commit intocomments-translation-v2from
codex/common-regexp-cpp-review

Conversation

@janrysavy
Copy link
Copy Markdown
Owner

Summary

  • review translation update for src/common/regexp.cpp
  • lands seven comment-only wording fixes in regex engine code

Review

  • HTML artifact: /mnt/d/source/ostranslation/artifacts/src-common-regexp-cpp-review-20260401/triple-diff-report.html
  • Inline review context comments include Czech source blocks and one-line rationales

Applied the approved branch-target review result for src/common/regexp.cpp. The landed patch contains seven focused wording fixes in comments only.

The changes tighten technical English without changing behavior: the case-insensitive branch label is now explicit, the undefined escape-sequence note drops first-person narration, the escaped-character comment now refers to a parenthesis instead of the broader bracket term, and two old Henry Spencer regex engine block comments were smoothed into more natural English by fixing the article and simplifying the explanatory sentence structure.

No unrelated edits were introduced. I copied the reviewed draft file from artifacts/src-common-regexp-cpp-review-20260401, confirmed the worktree diff only contains the expected comment rewrites in src/common/regexp.cpp, and then ran node --experimental-strip-types src/comment-guard.ts --target-root /mnt/d/source/OpenSal/salamander_codex_pr --artifacts-dir /mnt/d/source/ostranslation/artifacts/src-common-regexp-cpp-review-20260401 --selected-files src/common/regexp.cpp with exit code 0 before committing.
Line[LineLength] = 0;
}
else // insensitive
else // case-insensitive
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// insensitive

Rationale: insensitive alone is not idiomatic here; branch is for case-insensitive handling.

sour++;
if (!*sour)
break; // I should probably throw an error here; such a sequence is not defined
break; // An error should probably be thrown here; such a sequence is not defined
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// tady bych asi mnel hodit chybu takovato sekvence neni definovana

Rationale: Meaning is correct, but first-person narration is not suitable for a technical code comment.

if (*ss != 0)
ss++;
break; // the character after '\\' cannot be treated as a bracket
break; // the character after '\\' cannot be treated as a parenthesis
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// znak za '\\' nemuze byt brany jako zavorka

Rationale: bracket is too broad; code tracks parentheses and square brackets separately, here escaped char must not count as a parenthesis.

*
* Implements the concatenation operator.
* Implements concatenation.
*/
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/*
- regbranch - one alternative of an | operator
*
* Implements the concatenation operator.
*/

Rationale: Article and phrasing are slightly unnatural; concise standard wording is better.

*
* Means relocating the operand.
* This means relocating the operand.
*/
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/*
- reginsert - insert an operator in front of already-emitted operand
*
* Means relocating the operand.
*/

Rationale: Missing article makes the current text ungrammatical.

@janrysavy janrysavy merged commit b9074ab into comments-translation-v2 Apr 2, 2026
3 checks passed
@janrysavy janrysavy deleted the codex/common-regexp-cpp-review branch April 2, 2026 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants