Skip to content

Commit 87ee41a

Browse files
committed
buffer: Don't process the default syntax in the user's custom file lookup
It needs to be processed earliest in the moment no match could be determined.
1 parent 6ffabd6 commit 87ee41a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/buffer/buffer.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -710,6 +710,10 @@ func (b *Buffer) UpdateRules() {
710710
var header *highlight.Header
711711
// search for the syntax file in the user's custom syntax files
712712
for _, f := range config.ListRealRuntimeFiles(config.RTSyntax) {
713+
if f.Name() == "default" {
714+
continue
715+
}
716+
713717
data, err := f.Data()
714718
if err != nil {
715719
screen.TermMessage("Error loading syntax file " + f.Name() + ": " + err.Error())

0 commit comments

Comments
 (0)