aboutsummaryrefslogtreecommitdiff
path: root/test/helpers.lua
diff options
context:
space:
mode:
authorAshkan Kiani <ashkan.k.kiani@gmail.com>2019-11-24 02:28:48 -0800
committerJustin M. Keyes <justinkz@gmail.com>2019-11-24 02:28:48 -0800
commitd0d38fc36e0c1602186aa540417070fa6c1e2746 (patch)
tree8b1816344eddc1b0b4e0d209239f5e5072b5171a /test/helpers.lua
parent222637c341700294a059651bcea62d2e91795646 (diff)
downloadrneovim-d0d38fc36e0c1602186aa540417070fa6c1e2746.tar.gz
rneovim-d0d38fc36e0c1602186aa540417070fa6c1e2746.tar.bz2
rneovim-d0d38fc36e0c1602186aa540417070fa6c1e2746.zip
Lua: vim.env, vim.{g,v,w,bo,wo} #11442
- Add vim variable meta accessors: vim.env, vim.{g,v,w,bo,wo} - Redo gen_char_blob to generate multiple blobs instead of just one so that multiple Lua modules can be inlined. - Reorder vim.lua inclusion so that it can use previously defined C functions and utility functions like vim.shared and vim.inspect things. - Inline shared.lua into nvim, but also keep it available in runtime.
Diffstat (limited to 'test/helpers.lua')
-rw-r--r--test/helpers.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/helpers.lua b/test/helpers.lua
index 3f29a28c0d..98f003f208 100644
--- a/test/helpers.lua
+++ b/test/helpers.lua
@@ -99,6 +99,9 @@ function module.pcall_err(fn, ...)
-- to this:
-- Error executing lua: .../foo.lua:186: Expected string, got number
errmsg = errmsg:gsub([[lua: [a-zA-Z]?:?[^:]-[/\]([^:/\]+):%d+: ]], 'lua: .../%1: ')
+ -- Compiled modules will not have a path and will just be a name like
+ -- shared.lua:186, so strip the number.
+ errmsg = errmsg:gsub([[lua: ([^:/\ ]+):%d+: ]], 'lua: .../%1: ')
-- ^ Windows drive-letter (C:)
return errmsg
end