From 5492d3095315c9841334a7dbf58d1667ccea228a Mon Sep 17 00:00:00 2001 From: Dmytro Maluka Date: Sun, 24 Mar 2024 03:19:07 +0100 Subject: [PATCH] UpdateRules: add comment about the reason for signature match --- internal/buffer/buffer.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/buffer/buffer.go b/internal/buffer/buffer.go index 115cb64e..a51f2dc8 100644 --- a/internal/buffer/buffer.go +++ b/internal/buffer/buffer.go @@ -802,6 +802,8 @@ func (b *Buffer) UpdateRules() { if length > 0 { signatureMatch := false if length > 1 { + // multiple matching syntax files found, try to resolve the ambiguity + // using signatures detectlimit := util.IntOpt(b.Settings["detectlimit"]) lineCount := len(b.lines) limit := lineCount