summaryrefslogtreecommitdiffstatshomepage
path: root/runtime/compiler/gleam_build.vim
blob: c2b1679b3c2eb1b7b159479683c49eb8b92d01a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
" Vim compiler file
" Language:    Gleam
" Maintainer:  Kirill Morozov <kirill@robotix.pro>
" Based On:    https://github.com/gleam-lang/gleam.vim
" Last Change: 2025 Apr 21

if exists('current_compiler')
  finish
endif
let current_compiler = "gleam_build"

CompilerSet makeprg=gleam\ build

" Example error message:
"
" error: Unknown variable
"    ┌─ /home/michael/root/projects/tutorials/gleam/try/code/src/main.gleam:19:18
"    │
" 19 │   Ok(tuple(name, spot))
"    │                  ^^^^ did you mean `sport`?
"
" The name `spot` is not in scope here.
CompilerSet errorformat=%Eerror:\ %m,%Wwarning:\ %m,%C\ %#┌─%#\ %f:%l:%c\ %#-%#

" vim: sw=2 sts=2 et