Skip to content

Commit ed993a4

Browse files
committed
buffer: Precise comment about searching in the internal runtime files
1 parent 4cafa60 commit ed993a4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/buffer/buffer.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,7 @@ func (b *Buffer) UpdateRules() {
770770
}
771771

772772
if !foundDef {
773-
// search in the default syntax files
773+
// search for the syntax file in the runtime files
774774
for _, f := range config.ListRuntimeFiles(config.RTSyntaxHeader) {
775775
data, err := f.Data()
776776
if err != nil {
@@ -883,6 +883,7 @@ func (b *Buffer) UpdateRules() {
883883
screen.TermMessage("Error loading syntax file " + f.Name() + ": " + err.Error())
884884
continue
885885
}
886+
886887
header, err := highlight.MakeHeaderYaml(data)
887888
if err != nil {
888889
screen.TermMessage("Error parsing syntax file " + f.Name() + ": " + err.Error())

0 commit comments

Comments
 (0)