UpdateRules: add comment about the reason for signature match

This commit is contained in:
Dmytro Maluka
2024-03-24 03:19:07 +01:00
parent 6c3b5ad17c
commit 5492d30953

View File

@@ -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