Skip to content

Instantly share code, notes, and snippets.

@pocke
Created March 8, 2018 02:07
Show Gist options
  • Save pocke/cd190dfdf7c9db801a71db951763aec2 to your computer and use it in GitHub Desktop.
Save pocke/cd190dfdf7c9db801a71db951763aec2 to your computer and use it in GitHub Desktop.
diff --git a/autoload/iro/ruby.vim.rb b/autoload/iro/ruby.vim.rb
index 9bb1d7b..a638d01 100644
--- a/autoload/iro/ruby.vim.rb
+++ b/autoload/iro/ruby.vim.rb
@@ -11,6 +11,9 @@ module IroVim
source = Vim.evaluate("getbufline(#{bufnr}, 1, '$')").join("\n")
result = Iro::Ruby::Parser.tokens(source)
Vim.command 'let s:result = ' + JSON.generate(result)
+ rescue => ex
+ puts ex.backtrace
+ raise
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment