mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
viml/parser/expressions: Create tests for latest additions
This commit is contained in:
@@ -352,7 +352,14 @@ format_luav = function(v, indent)
|
||||
end
|
||||
end
|
||||
ret = ret .. indent .. '}'
|
||||
elseif type(v) == 'number' then
|
||||
if v % 1 == 0 then
|
||||
ret = ('%d'):format(v)
|
||||
else
|
||||
ret = ('%e'):format(v)
|
||||
end
|
||||
else
|
||||
print(type(v))
|
||||
-- Not implemented yet
|
||||
assert(false)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user