Skip to content

Remove duplicate fence detection code in src/wrap.rs #177

Description

@coderabbitai

Issue Description

There is duplicate fence detection logic in src/wrap.rs that should be consolidated to use the implementation from the tokenize module.

Current Problem

The file src/wrap.rs contains:

  • A local FENCE_RE static regex
  • A local is_fence function that uses this regex

This duplicates the fence detection logic already implemented in the tokenize module.

Proposed Solution

Remove the local FENCE_RE static and update the is_fence function to call crate::tokenize::is_fence(line) instead.

References

Code Location

  • File: src/wrap.rs
  • Lines: ~23-24 and ~213

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions