nvim-treesitter/tests/query/highlights/gleam/try.gleam

12 lines
222 B
Gleam
Raw Normal View History

2022-02-12 17:58:14 -08:00
pub fn main() {
try x = Ok(1)
// <- exception
2022-02-12 17:58:14 -08:00
// ^ variable
// ^ operator
// ^^ constant.builtin
2022-02-12 17:58:14 -08:00
// ^ punctuation.bracket
// ^ number
// ^ punctuation.bracket
Ok(x + 1)
}