summaryrefslogtreecommitdiff
path: root/mnv/runtime/compiler/ruby.mnv
diff options
context:
space:
mode:
Diffstat (limited to 'mnv/runtime/compiler/ruby.mnv')
-rw-r--r--mnv/runtime/compiler/ruby.mnv41
1 files changed, 41 insertions, 0 deletions
diff --git a/mnv/runtime/compiler/ruby.mnv b/mnv/runtime/compiler/ruby.mnv
new file mode 100644
index 0000000000..1576588984
--- /dev/null
+++ b/mnv/runtime/compiler/ruby.mnv
@@ -0,0 +1,41 @@
+" MNV compiler file
+" Language: Ruby
+" Function: Syntax check and/or error reporting
+" Maintainer: Tim Pope <mnvNOSPAM@tpope.org>
+" URL: https://github.com/mnv-ruby/mnv-ruby
+" Last Change: 2019 Jan 06
+" 2024 Apr 03 by The MNV Project (removed :CompilerSet definition)
+
+if exists("current_compiler")
+ finish
+endif
+let current_compiler = "ruby"
+
+let s:cpo_save = &cpo
+set cpo-=C
+
+" default settings runs script normally
+" add '-c' switch to run syntax check only:
+"
+" CompilerSet makeprg=ruby\ -c
+"
+" or add '-c' at :make command line:
+"
+" :make -c %<CR>
+"
+CompilerSet makeprg=ruby
+
+CompilerSet errorformat=
+ \%+E%f:%l:\ parse\ error,
+ \%W%f:%l:\ warning:\ %m,
+ \%E%f:%l:in\ %*[^:]:\ %m,
+ \%E%f:%l:\ %m,
+ \%-C%\t%\\d%#:%#\ %#from\ %f:%l:in\ %.%#,
+ \%-Z%\t%\\d%#:%#\ %#from\ %f:%l,
+ \%-Z%p^,
+ \%-G%.%#
+
+let &cpo = s:cpo_save
+unlet s:cpo_save
+
+" mnv: nowrap sw=2 sts=2 ts=8: