// Detect It Easy: detection rule file
// Author: horsicq <horsicq@gmail.com>

meta("compiler", "Zig");

function detect() {
    if ((MACH.isSectionNamePresent("__cstring")) && (MACH.isDeepScan())) {
        var nIndex = MACH.getSectionNumber("__cstring");

        bDetected = MACH.findSignature(
            MACH.getSectionFileOffset(nIndex),
            MACH.getSectionFileSize(nIndex),
            "5a49475f44454255475f434f4c4f52"); // ANSI ZIG_DEBUG_COLOR
    }

    sLang = "Zig";

    return result();
}
