From 7f9287a7e72c5da83d036f1aeff7c42ec9d901e7 Mon Sep 17 00:00:00 2001 From: NCarrezDev Date: Wed, 13 Jul 2022 09:16:32 +0200 Subject: [PATCH] [chore]: Delete useless $ follow up on Guldoman's comment --- data/plugins/language_c.lua | 2 +- data/plugins/language_cpp.lua | 2 +- data/plugins/language_css.lua | 2 +- data/plugins/language_js.lua | 2 +- data/plugins/language_lua.lua | 2 +- data/plugins/language_md.lua | 2 +- data/plugins/language_python.lua | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/data/plugins/language_c.lua b/data/plugins/language_c.lua index e644c90e..c15466be 100644 --- a/data/plugins/language_c.lua +++ b/data/plugins/language_c.lua @@ -7,7 +7,7 @@ syntax.add { comment = "//", block_comment = { "/*", "*/" }, patterns = { - { pattern = "//.*$", type = "comment" }, + { pattern = "//.*", type = "comment" }, { pattern = { "/%*", "%*/" }, type = "comment" }, { pattern = { '"', '"', '\\' }, type = "string" }, { pattern = { "'", "'", '\\' }, type = "string" }, diff --git a/data/plugins/language_cpp.lua b/data/plugins/language_cpp.lua index c007a64d..a26ce868 100644 --- a/data/plugins/language_cpp.lua +++ b/data/plugins/language_cpp.lua @@ -10,7 +10,7 @@ syntax.add { comment = "//", block_comment = { "/*", "*/" }, patterns = { - { pattern = "//.*$", type = "comment" }, + { pattern = "//.*", type = "comment" }, { pattern = { "/%*", "%*/" }, type = "comment" }, { pattern = { '"', '"', '\\' }, type = "string" }, { pattern = { "'", "'", '\\' }, type = "string" }, diff --git a/data/plugins/language_css.lua b/data/plugins/language_css.lua index fa69ac8f..9e78cde5 100644 --- a/data/plugins/language_css.lua +++ b/data/plugins/language_css.lua @@ -7,7 +7,7 @@ syntax.add { block_comment = { "/*", "*/" }, patterns = { { pattern = "\\.", type = "normal" }, - { pattern = "//.*$", type = "comment" }, + { pattern = "//.*", type = "comment" }, { pattern = { "/%*", "%*/" }, type = "comment" }, { pattern = { '"', '"', '\\' }, type = "string" }, { pattern = { "'", "'", '\\' }, type = "string" }, diff --git a/data/plugins/language_js.lua b/data/plugins/language_js.lua index 3ea7a805..f79fece6 100644 --- a/data/plugins/language_js.lua +++ b/data/plugins/language_js.lua @@ -7,7 +7,7 @@ syntax.add { comment = "//", block_comment = { "/*", "*/" }, patterns = { - { pattern = "//.*$", type = "comment" }, + { pattern = "//.*", type = "comment" }, { pattern = { "/%*", "%*/" }, type = "comment" }, { pattern = { '/[^= ]', '/', '\\' },type = "string" }, { pattern = { '"', '"', '\\' }, type = "string" }, diff --git a/data/plugins/language_lua.lua b/data/plugins/language_lua.lua index 193f344b..55cc8adc 100644 --- a/data/plugins/language_lua.lua +++ b/data/plugins/language_lua.lua @@ -12,7 +12,7 @@ syntax.add { { pattern = { "'", "'", '\\' }, type = "string" }, { pattern = { "%[%[", "%]%]" }, type = "string" }, { pattern = { "%-%-%[%[", "%]%]"}, type = "comment" }, - { pattern = "%-%-.*$", type = "comment" }, + { pattern = "%-%-.*", type = "comment" }, { pattern = "0x%x+%.%x*[pP][-+]?%d+", type = "number" }, { pattern = "0x%x+%.%x*", type = "number" }, { pattern = "0x%.%x+[pP][-+]?%d+", type = "number" }, diff --git a/data/plugins/language_md.lua b/data/plugins/language_md.lua index f40821ce..d622a04d 100644 --- a/data/plugins/language_md.lua +++ b/data/plugins/language_md.lua @@ -51,7 +51,7 @@ syntax.add { type = { "function", "number", "function" } }, { - pattern = "^%s*%[%^?()["..in_squares_match.."]+()%]:%s+.+$", + pattern = "^%s*%[%^?()["..in_squares_match.."]+()%]:%s+.*", type = { "function", "number", "function" } }, -- optimization diff --git a/data/plugins/language_python.lua b/data/plugins/language_python.lua index f66130c5..b96b56b9 100644 --- a/data/plugins/language_python.lua +++ b/data/plugins/language_python.lua @@ -7,7 +7,7 @@ syntax.add { headers = "^#!.*[ /]python", comment = "#", patterns = { - { pattern = "#.*$", type = "comment" }, + { pattern = "#.*", type = "comment" }, { pattern = { '[ruU]?"""', '"""'; '\\' }, type = "string" }, { pattern = { "[ruU]?'''", "'''", '\\' }, type = "string" }, { pattern = { '[ruU]?"', '"', '\\' }, type = "string" },