aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjgmdev <jgmdev@gmail.com>2022-03-03 03:47:03 -0400
committerjgmdev <jgmdev@gmail.com>2022-03-03 03:47:03 -0400
commit9ff12f61d86ed8d33471199ce6705dd15f9a5af4 (patch)
tree62112d6a1041260df88eb12debeb39b6439e0735
parente759d63313a04cc9b4d9822328c8c35da022f84d (diff)
downloadlite-xl-plugins-9ff12f61d86ed8d33471199ce6705dd15f9a5af4.tar.gz
lite-xl-plugins-9ff12f61d86ed8d33471199ce6705dd15f9a5af4.zip
language_diff: removed unnecesary matching of words.
-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 = {}
}