Kirill Morozov | 32f4973 | 2025-04-24 21:28:56 +0200 | [diff] [blame] | 1 | " Vim compiler file |
| 2 | " Language: Gleam |
| 3 | " Maintainer: Kirill Morozov <kirill@robotix.pro> |
| 4 | " Based On: https://github.com/gleam-lang/gleam.vim |
| 5 | " Last Change: 2025 Apr 21 |
| 6 | |
| 7 | if exists('current_compiler') |
| 8 | finish |
| 9 | endif |
| 10 | let current_compiler = "gleam_build" |
| 11 | |
| 12 | CompilerSet makeprg=gleam\ build |
| 13 | |
| 14 | " Example error message: |
| 15 | " |
| 16 | " error: Unknown variable |
| 17 | " ┌─ /home/michael/root/projects/tutorials/gleam/try/code/src/main.gleam:19:18 |
| 18 | " │ |
| 19 | " 19 │ Ok(tuple(name, spot)) |
| 20 | " │ ^^^^ did you mean `sport`? |
| 21 | " |
| 22 | " The name `spot` is not in scope here. |
| 23 | CompilerSet errorformat=%Eerror:\ %m,%Wwarning:\ %m,%C\ %#┌─%#\ %f:%l:%c\ %#-%# |
| 24 | |
| 25 | " vim: sw=2 sts=2 et |