mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-16 13:57:07 +09:00
buffer: Precise comment about searching in the internal runtime files
This commit is contained in:
@@ -770,7 +770,7 @@ func (b *Buffer) UpdateRules() {
|
||||
}
|
||||
|
||||
if !foundDef {
|
||||
// search in the default syntax files
|
||||
// search for the syntax file in the runtime files
|
||||
for _, f := range config.ListRuntimeFiles(config.RTSyntaxHeader) {
|
||||
data, err := f.Data()
|
||||
if err != nil {
|
||||
@@ -883,6 +883,7 @@ func (b *Buffer) UpdateRules() {
|
||||
screen.TermMessage("Error loading syntax file " + f.Name() + ": " + err.Error())
|
||||
continue
|
||||
}
|
||||
|
||||
header, err := highlight.MakeHeaderYaml(data)
|
||||
if err != nil {
|
||||
screen.TermMessage("Error parsing syntax file " + f.Name() + ": " + err.Error())
|
||||
|
||||
Reference in New Issue
Block a user