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
Issue Description
There is duplicate fence detection logic in
src/wrap.rsthat should be consolidated to use the implementation from thetokenizemodule.Current Problem
The file
src/wrap.rscontains:FENCE_REstatic regexis_fencefunction that uses this regexThis duplicates the fence detection logic already implemented in the
tokenizemodule.Proposed Solution
Remove the local
FENCE_REstatic and update theis_fencefunction to callcrate::tokenize::is_fence(line)instead.References
Code Location
src/wrap.rs