OK issue indenting due to comment after and on same mine of function déclarés.
The second syntax formed enable good indenting. function matchPattern(line, pattern) -- {{{ local x=line:match(pattern) if x~=nil then return ownsplit(x, '=') end end -- }}} function matchPattern(line, pattern) local x=line:match(pattern) if x~=nil then return ownsplit(x, '=') end end Le mercredi 18 mai 2022 à 09:00:28 UTC+2, Ni Va a écrit : > Hi, > > DON'T HAPPENING to get correct vim lua indentation, is someone can help me > ? > > function trace(t) -- {{{ > > setmetatable(t,{__index={s="", f=true}}) > local s, f = > t[1] or t.s, > t[2] or t.f -- force > > if dbgmode then > if f then > print ( os.date('%Y-%m-%d %H-%M-%S: ') .. s ) > end > end > end -- }}} > > - > > Thank you. > -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/67bc179a-ccca-45f5-94f1-b0c2425f15afn%40googlegroups.com.