Merge #7234 'built-in expression parser'

This commit is contained in:
Justin M. Keyes
2017-12-09 18:47:34 +01:00
49 changed files with 17465 additions and 772 deletions

View File

@@ -239,7 +239,11 @@ describe('external cmdline', function()
prompt = "",
special = {'"', true},
},{
content = { { {}, "1+2" } },
content = {
{ {}, "1" },
{ {}, "+" },
{ {}, "2" },
},
firstc = "=",
indent = 0,
pos = 3,
@@ -316,7 +320,7 @@ describe('external cmdline', function()
pos = 0,
prompt = "",
}}, cmdline)
eq({{{{}, 'function Foo()'}}}, block)
eq({ { { {}, 'function Foo()'} } }, block)
end)
feed('line1<cr>')
@@ -327,8 +331,8 @@ describe('external cmdline', function()
{1:~ }|
|
]], nil, nil, function()
eq({{{{}, 'function Foo()'}},
{{{}, ' line1'}}}, block)
eq({ { { {}, 'function Foo()'} },
{ { {}, ' line1'} } }, block)
end)
block = {}
@@ -340,8 +344,8 @@ describe('external cmdline', function()
{1:~ }|
^ |
]], nil, nil, function()
eq({{{{}, 'function Foo()'}},
{{{}, ' line1'}}}, block)
eq({ { { {}, 'function Foo()'} },
{ { {}, ' line1'} } }, block)
end)