.luacov 477 B

1234567891011121314151617181920212223
  1. -- Configuration file for LuaCov
  2. local source = require("lfs").currentdir()
  3. local function pesc(s)
  4. assert(type(s) == 'string', s)
  5. return s:gsub('[%(%)%.%%%+%-%*%?%[%]%^%$]', '%%%1')
  6. end
  7. return {
  8. include = {
  9. -- Absolute paths (starting with source dir, not hidden (i.e. .deps)).
  10. pesc(source) .. "[/\\][^.].+",
  11. -- Relative (non-hidden) paths.
  12. '^[^/\\.]',
  13. },
  14. modules = {
  15. ['vim'] = 'runtime/lua/vim/shared.lua'
  16. },
  17. }
  18. -- vim: ft=lua tw=80 sw=2 et