From d13e89cbbdda9722fc636b0666adce58501d1c9b Mon Sep 17 00:00:00 2001 From: Uko Kokņevičs Date: Sun, 2 Jan 2022 08:38:11 +0200 Subject: Some changes in Syntax --- src/Syntax/makefile.zig | 133 ++++++++++++++++++++++++++---------------------- 1 file changed, 72 insertions(+), 61 deletions(-) (limited to 'src/Syntax/makefile.zig') diff --git a/src/Syntax/makefile.zig b/src/Syntax/makefile.zig index 5c93df4..6ae7386 100644 --- a/src/Syntax/makefile.zig +++ b/src/Syntax/makefile.zig @@ -1,78 +1,89 @@ // zig fmt: off const es = @import("root"); +const std = @import("std"); +const ComptimeStringMap = std.ComptimeStringMap; +const Highlight = es.Highlight; const Syntax = es.Syntax; +pub const filematch = [_][]const u8{ + "GNUmakefile", "makefile", "Makefile", + + ".mk", +}; + pub const syntax = Syntax{ .name = "Makefile", - .filematch = &[_][]const u8{ "GNUmakefile", "makefile", "Makefile", ".mk" }, - .keywords1 = &[_][]const u8{ - "$@", "$(@D)", "$(@F)", - "$%", "$(%D)", "$(%F)", - "$<", "$(