From d8bbcd3fac574c06b2ec4d541d34081b41ef5439 Mon Sep 17 00:00:00 2001 From: jgmdev Date: Thu, 3 Mar 2022 14:40:17 -0400 Subject: language_diff: be more specific on the header format --- plugins/language_diff.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/language_diff.lua') diff --git a/plugins/language_diff.lua b/plugins/language_diff.lua index 7e17d80..4376b26 100644 --- a/plugins/language_diff.lua +++ b/plugins/language_diff.lua @@ -10,7 +10,7 @@ style.syntax["diff_del"] = { common.color "#F36161" } syntax.add { name = "Diff", files = { "%.diff$", "%.patch$", "%.rej$" }, - headers = "^diff ", + headers = "^diff %-", patterns = { -- Method the patch was generated with and source/target files { regex = "^diff .+", type = "function" }, -- cgit v1.2.3