#6349·gleam

ls: support find references for `panic` and `todo`

Author: ankddevCreated Sep 25, 2026Updated Sep 26, 2026
Labelshelp wanteddiscussion

Related to https://github.com/gleam-lang/gleam/issues/6345, and I think that same reasoning is applicable here.

gleam
pub const wibble = todo
//                 ^^^^

pub fn main() {
  todo as "reason"
//^^^^^^^^^^^^^^^^
}
gleam
pub fn main(a) {
  case a {
    True -> panic as "unreachable"
    //      ^^^^^^^^^^^^^^^^^^^^^^
    False -> panic
    //       ^^^^^
  }
}