def comment_text

bend-lint-rules@0.2.0.0 · layout/format.bend:1427

import bend-lint-rules@0.2.0.0/layout/format.bend as Format
import Base

1427def comment_text(text: String, keep: String) -> String:
1428  match text:
1429    case SCon{'#', +rest}:
1430      comment_text.after(rest, rest)
1431    case _:
1432      keep

Uses (7)

Used by (2)