Modify linter and add plugin cmd
This commit is contained in:
parent
016b8dcc4c
commit
35e3bddea0
3 changed files with 29 additions and 1 deletions
|
@ -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
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue