aboutsummaryrefslogtreecommitdiff
path: root/data/plugins/language_md.lua
diff options
context:
space:
mode:
authorNCarrezDev <n.carrez.dev@gmail.com>2022-07-06 10:15:44 +0200
committerNCarrezDev <n.carrez.dev@gmail.com>2022-07-06 10:15:44 +0200
commit030dcc1e62ff235271ee2dd84f07313a2bbf9574 (patch)
tree8c1f1bb9f64b1424235adf682b31830d0cdf9b0b /data/plugins/language_md.lua
parente646f2fb28b24bae5d13994b14b75252718a6ccd (diff)
downloadlite-xl-030dcc1e62ff235271ee2dd84f07313a2bbf9574.tar.gz
lite-xl-030dcc1e62ff235271ee2dd84f07313a2bbf9574.zip
[chore]: Update syntax
Harmonizing the syntax files Now inline comment are a single string instead of a table of strings. -(language_c): Removed whitespaces breaking indent -(language_html): Removed trailing whitespace
Diffstat (limited to 'data/plugins/language_md.lua')
-rw-r--r--data/plugins/language_md.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/data/plugins/language_md.lua b/data/plugins/language_md.lua
index b79202db..f40821ce 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+.+\n",
+ pattern = "^%s*%[%^?()["..in_squares_match.."]+()%]:%s+.+$",
type = { "function", "number", "function" }
},
-- optimization
@@ -154,9 +154,9 @@ syntax.add {
-- highlight
{ pattern = { "==", "==" }, type = "literal" },
-- lines
- { pattern = "^%-%-%-+\n", type = "comment" },
- { pattern = "^%*%*%*+\n", type = "comment" },
- { pattern = "^___+\n", type = "comment" },
+ { pattern = "^%-%-%-+$" , type = "comment" },
+ { pattern = "^%*%*%*+$", type = "comment" },
+ { pattern = "^___+$", type = "comment" },
-- bold and italic
{ pattern = { "%*%*%*%S", "%*%*%*" }, type = "markdown_bold_italic" },
{ pattern = { "%*%*%S", "%*%*" }, type = "markdown_bold" },
@@ -175,7 +175,7 @@ syntax.add {
type = { "keyword", "function", "string", "function" }
},
-- headings
- { pattern = "^#+%s.+\n", type = "keyword" },
+ { pattern = "^#+%s.+$", type = "keyword" },
-- superscript and subscript
{
pattern = "%^()%d+()%^",