aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/language_diff.lua10
1 files changed, 4 insertions, 6 deletions
diff --git a/plugins/language_diff.lua b/plugins/language_diff.lua
index 46a6af4..fd5406c 100644
--- a/plugins/language_diff.lua
+++ b/plugins/language_diff.lua
@@ -13,11 +13,11 @@ syntax.add {
headers = "^diff ",
patterns = {
-- Method the patch was generated with and source/target files
- { regex = "^diff .+\n$", type = "function" },
+ { regex = "^diff .+\n$", type = "function" },
-- Seen for changing the file permissions
- { regex = "^new .+\n$", type = "comment" },
+ { regex = "^new .+\n$", type = "comment" },
-- Usually holds starting and ending commit
- { regex = "^index .+\n$", type = "comment" },
+ { regex = "^index .+\n$", type = "comment" },
-- Position to patch
{
pattern = "@@.-@@ ().+\n", --with heading
@@ -64,9 +64,7 @@ syntax.add {
{
regex = "<[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+>\n",
type = "keyword2"
- },
- -- Everything else is normal text
- { pattern = "[%a_][%w_]*", type = "normal" },
+ }
},
symbols = {}
}