- // Load the user's custom syntax files, if there are any
- LoadSyntaxFilesFromDir(configDir + "/syntax")
-
- // Load the pre-installed syntax files from inside the binary
- for _, filetype := range preInstalledSynFiles {
- data, err := Asset("runtime/syntax/" + filetype + ".micro")
- if err != nil {
- TermMessage("Unable to load pre-installed syntax file " + filetype)
- continue
- }
-
- LoadSyntaxFile(string(data), filetype+".micro")
- }
-}
-
-// LoadSyntaxFilesFromDir loads the syntax files from a specified directory
-// To load the syntax files, we must fill the `syntaxFiles` map
-// This involves finding the regex for syntax and if it exists, the regex
-// for the header. Then we must get the text for the file and the filetype.
-func LoadSyntaxFilesFromDir(dir string) {