diff options
author | jgmdev <jgmdev@gmail.com> | 2022-03-03 03:47:03 -0400 |
---|---|---|
committer | jgmdev <jgmdev@gmail.com> | 2022-03-03 03:47:03 -0400 |
commit | 9ff12f61d86ed8d33471199ce6705dd15f9a5af4 (patch) | |
tree | 62112d6a1041260df88eb12debeb39b6439e0735 /plugins/language_diff.lua | |
parent | e759d63313a04cc9b4d9822328c8c35da022f84d (diff) | |
download | lite-xl-plugins-9ff12f61d86ed8d33471199ce6705dd15f9a5af4.tar.gz lite-xl-plugins-9ff12f61d86ed8d33471199ce6705dd15f9a5af4.zip |
language_diff: removed unnecesary matching of words.
Diffstat (limited to 'plugins/language_diff.lua')
-rw-r--r-- | plugins/language_diff.lua | 10 |
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 = {} } |