def scan
bolt@1.27.0.0 · src/rules/correctness/escape.bend:100
import bolt@1.27.0.0/src/rules/correctness/escape.bend as Escape
import Base
import bolt@1.27.0.0/src/finding.bend as F
100
101def scan(ss: List<&2, Sym>, +path: String, +line: U32, +col: U32) -> List<&2, F.Finding>:
102 match ss:
103 case Con{SSlash{}, Con{SZero{}, +rest}}:
104 after(rest, path, line, col, scan(rest, path, line, (col + 2 : U32)))
105 case Con{SSlash{}, Con{e, rest}}:
106 scan(rest, path, line, (col + 2 : U32))
107 case Con{s, rest}:
108 scan(rest, path, line, (col + 1 : U32))
109 case Nil{}:
110 Nil{}