Created
March 8, 2018 02:07
-
-
Save pocke/cd190dfdf7c9db801a71db951763aec2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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