aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjgmdev <jgmdev@gmail.com>2022-03-03 14:40:17 -0400
committerjgmdev <jgmdev@gmail.com>2022-03-03 14:40:17 -0400
commitd8bbcd3fac574c06b2ec4d541d34081b41ef5439 (patch)
tree0fbd7356adf052dbab26dc8a01028c86e4109e8a
parentb198c3b9e01257b375242b3aea3ac4fa4d3ba4ab (diff)
downloadlite-xl-plugins-d8bbcd3fac574c06b2ec4d541d34081b41ef5439.tar.gz
lite-xl-plugins-d8bbcd3fac574c06b2ec4d541d34081b41ef5439.zip
language_diff: be more specific on the header format
-rw-r--r--plugins/language_diff.lua2
1 files changed, 1 insertions, 1 deletions
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" },