Automatically reload style when saving the project user module

This commit is contained in:
Francesco Abbate committed 2020-12-10 17:56:53 +01:00
1 parent 6409b67ea2
commit 9114148b45
6 files changed
+72 -19

No files matched your search

+6
View File
@@ -53,4 +53,10 @@ style.syntax["string"] = { common.color "#f7c95c" }
style.syntax["operator"] = { common.color "#93DDFA" }
style.syntax["function"] = { common.color "#93DDFA" }
style.load = function(module_name)
package.loaded[module_name] = nil
require(module_name)
end
return style