Modify linter and add plugin cmd

This commit is contained in:
Zachary Yedidia 2020-01-30 17:51:04 -05:00
parent 016b8dcc4c
commit 35e3bddea0
3 changed files with 29 additions and 1 deletions

View file

@ -129,6 +129,7 @@ func luaImportMicroUtil() *lua.LTable {
ulua.L.SetField(pkg, "RuneAt", luar.New(ulua.L, util.LuaRuneAt))
ulua.L.SetField(pkg, "GetLeadingWhitespace", luar.New(ulua.L, util.LuaGetLeadingWhitespace))
ulua.L.SetField(pkg, "IsWordChar", luar.New(ulua.L, util.LuaIsWordChar))
ulua.L.SetField(pkg, "String", luar.New(ulua.L, util.String))
return pkg
}

File diff suppressed because one or more lines are too long

View file

@ -417,3 +417,7 @@ func IsNonAlphaNumeric(c rune) bool {
func ParseSpecial(s string) string {
return strings.Replace(s, "\\t", "\t", -1)
}
func String(s []byte) string {
return string(s)
}