buffer: Precise comment about searching in the internal runtime files
This commit is contained in:
parent
4cafa601b5
commit
ed993a4021
1 changed files with 2 additions and 1 deletions
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue