summaryrefslogtreecommitdiff
path: root/mnv/runtime/compiler/gleam_build.mnv
diff options
context:
space:
mode:
Diffstat (limited to 'mnv/runtime/compiler/gleam_build.mnv')
-rw-r--r--mnv/runtime/compiler/gleam_build.mnv25
1 files changed, 25 insertions, 0 deletions
diff --git a/mnv/runtime/compiler/gleam_build.mnv b/mnv/runtime/compiler/gleam_build.mnv
new file mode 100644
index 0000000000..a6337a527d
--- /dev/null
+++ b/mnv/runtime/compiler/gleam_build.mnv
@@ -0,0 +1,25 @@
+" MNV compiler file
+" Language: Gleam
+" Maintainer: Kirill Morozov <kirill@robotix.pro>
+" Based On: https://github.com/gleam-lang/gleam.mnv
+" 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\ %#-%#
+
+" mnv: sw=2 sts=2 et