def looks.first
import ezx@1.11.0.0/src/ez/target.bend as Targetimport Base
317# the first char: `/`, or the start of `./`, `../` or `~/`
318def looks.first(mark: Mark, rest: String) -> Bool:
319 match mark:
320 case Slash{}:
321 True{}
322 case Dot{}:
323 looks.dot(rest)
324 case Tilde{}:
325 looks.slash(rest)
326 case Word{}:
327 False{}
328 case Other{}:
329 False{}