File tree Expand file tree Collapse file tree 1 file changed +16
-12
lines changed Expand file tree Collapse file tree 1 file changed +16
-12
lines changed Original file line number Diff line number Diff line change @@ -738,20 +738,24 @@ describe("Parser", function()
738738 })
739739 end )
740740
741- it (" correctly transforms if the match does not include the first character." , function ()
742- ls_helpers .setup_jsregexp ()
743- ls_helpers .session_setup_luasnip ()
744- local snip = " ${1:asdf.asdf} ${1/[\\ .]/-/g}"
745-
746- -- expand snippet.
747- exec_lua (" ls.lsp_expand([[" .. snip .. " ]])" )
748-
749- screen :expect {
750- grid = [[
741+ it (
742+ " correctly transforms if the match does not include the first character." ,
743+ function ()
744+ ls_helpers .setup_jsregexp ()
745+ ls_helpers .session_setup_luasnip ()
746+ local snip = " ${1:asdf.asdf} ${1/[\\ .]/-/g}"
747+
748+ -- expand snippet.
749+ exec_lua (" ls.lsp_expand([[" .. snip .. " ]])" )
750+
751+ screen :expect ({
752+ grid = [[
751753 ^a{3:sdf.asdf} asdf-asdf |
752754 {0:~ }|
753- {2:-- SELECT --} |]] }
754- end )
755+ {2:-- SELECT --} |]] ,
756+ })
757+ end
758+ )
755759
756760 it (" handles default correctly inside placeholder" , function ()
757761 ls_helpers .session_setup_luasnip ()
You can’t perform that action at this time.
0 commit comments