aboutsummaryrefslogtreecommitdiff
path: root/test/helpers.lua
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2018-02-02 08:57:17 -0500
committerJames McCoy <jamessan@jamessan.com>2018-02-03 22:19:08 -0500
commitde10ea55f370cd57b79d23c2ae09bebf154a0f1a (patch)
treea6f796181ed7b76b470d6ce0fbb2df0a836fccae /test/helpers.lua
parent2316a38dd117b0bbd3b6ebb04856029c227633f6 (diff)
downloadrneovim-de10ea55f370cd57b79d23c2ae09bebf154a0f1a.tar.gz
rneovim-de10ea55f370cd57b79d23c2ae09bebf154a0f1a.tar.bz2
rneovim-de10ea55f370cd57b79d23c2ae09bebf154a0f1a.zip
lint
Diffstat (limited to 'test/helpers.lua')
-rw-r--r--test/helpers.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/helpers.lua b/test/helpers.lua
index 3e7e70fe07..1c64f41b65 100644
--- a/test/helpers.lua
+++ b/test/helpers.lua
@@ -423,7 +423,7 @@ format_luav = function(v, indent, opts)
if opts.literal_strings then
ret = v
else
- quote = opts.dquote_strings and '"' or '\''
+ local quote = opts.dquote_strings and '"' or '\''
ret = quote .. tostring(v):gsub(
opts.dquote_strings and '["\\]' or '[\'\\]',
'\\%0'):gsub(
@@ -493,7 +493,7 @@ local function format_string(fmt, ...)
arg = getarg()
end
if subfmt:sub(-1) == 'r' or subfmt:sub(-1) == 'q' then
- -- %r is like built-in %q, but it is supposed to single-quote strings and
+ -- %r is like built-in %q, but it is supposed to single-quote strings and
-- not double-quote them, and also work not only for strings.
-- Builtin %q is replaced here as it gives invalid and inconsistent with
-- luajit results for e.g. "\e" on lua: luajit transforms that into `\27`,