mirror of
https://github.com/neovim/neovim.git
synced 2025-11-07 03:04:22 +00:00
test: man_spec: Fix use of nested [[ quoting
Lua (not LuaJIT) complains about the "^[[" strings inside the expect, since it sees them as nested quotes. Change the quoting to [=[ ]=] to avoid the issue.
This commit is contained in:
@@ -66,13 +66,13 @@ describe(':Man', function()
|
|||||||
ithis <C-v><ESC>[1mis <C-v><ESC>[3ma <C-v><ESC>[4mtest<C-v><ESC>[0m
|
ithis <C-v><ESC>[1mis <C-v><ESC>[3ma <C-v><ESC>[4mtest<C-v><ESC>[0m
|
||||||
<C-v><ESC>[4mwith<C-v><ESC>[24m <C-v><ESC>[4mescaped<C-v><ESC>[24m <C-v><ESC>[4mtext<C-v><ESC>[24m<ESC>]])
|
<C-v><ESC>[4mwith<C-v><ESC>[24m <C-v><ESC>[4mescaped<C-v><ESC>[24m <C-v><ESC>[4mtext<C-v><ESC>[24m<ESC>]])
|
||||||
|
|
||||||
screen:expect([[
|
screen:expect([=[
|
||||||
this ^[[1mis ^[[3ma ^[[4mtest^[[0m |
|
this ^[[1mis ^[[3ma ^[[4mtest^[[0m |
|
||||||
^[[4mwith^[[24m ^[[4mescaped^[[24m ^[[4mtext^[[24^m |
|
^[[4mwith^[[24m ^[[4mescaped^[[24m ^[[4mtext^[[24^m |
|
||||||
~ |
|
~ |
|
||||||
~ |
|
~ |
|
||||||
|
|
|
|
||||||
]])
|
]=])
|
||||||
|
|
||||||
eval('man#init_pager()')
|
eval('man#init_pager()')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user