Add linter plugin support

This commit is contained in:
Zachary Yedidia
2019-08-02 23:46:25 -07:00
parent e7e0272968
commit 4027081e0e
11 changed files with 166 additions and 99 deletions

View File

@@ -57,7 +57,7 @@ func Import(pkg string) *lua.LTable {
return importRuntime()
case "path":
return importPath()
case "filepath":
case "path/filepath", "filepath":
return importFilePath()
case "strings":
return importStrings()
@@ -67,7 +67,7 @@ func Import(pkg string) *lua.LTable {
return importErrors()
case "time":
return importTime()
case "utf8":
case "unicode/utf8", "utf8":
return importUtf8()
default:
return nil