]> git.lizzy.rs Git - micro.git/commitdiff
Improve patch file detection by adding a header rule. (#1942)
authorLaszlo Gombos <laszlo.gombos@gmail.com>
Wed, 7 Apr 2021 20:20:57 +0000 (16:20 -0400)
committerGitHub <noreply@github.com>
Wed, 7 Apr 2021 20:20:57 +0000 (16:20 -0400)
runtime/syntax/patch.yaml

index 452dd31cc30d6a50435e5c4c45151aea591eaf5f..996bdc38f5648371d2b119e3274aec9ed67aeaf3 100644 (file)
@@ -1,7 +1,8 @@
 filetype: patch
 
-detect: 
+detect:
     filename: "\\.(patch|diff)$"
+    header: "^diff"
 
 rules:
     - brightgreen: "^\\+.*"