mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-29 22:27:13 +09:00
allow plugins to list / read runtime files
also renamed most of the new functions to be more specific about what kind of files this is for.
This commit is contained in:
@@ -32,7 +32,7 @@ var syntaxFiles map[[2]*regexp.Regexp]FileTypeRules
|
||||
func LoadSyntaxFiles() {
|
||||
InitColorscheme()
|
||||
syntaxFiles = make(map[[2]*regexp.Regexp]FileTypeRules)
|
||||
for _, f := range ListExtensionFiles(FILE_Syntax) {
|
||||
for _, f := range ListRuntimeFiles(FILE_Syntax) {
|
||||
data, err := f.Data()
|
||||
if err != nil {
|
||||
TermMessage("Error loading syntax file " + f.Name() + ": " + err.Error())
|
||||
|
||||
Reference in New Issue
Block a user