From 534a822158505faad285652b917312b9998d33b9 Mon Sep 17 00:00:00 2001 From: Nightwing Date: Fri, 3 Dec 2021 23:50:23 +0900 Subject: [PATCH] Improved Markdown syntax highlighter --- data/plugins/language_md.lua | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/data/plugins/language_md.lua b/data/plugins/language_md.lua index 62cb8a86..e7c870ec 100644 --- a/data/plugins/language_md.lua +++ b/data/plugins/language_md.lua @@ -9,7 +9,6 @@ syntax.add { patterns = { { pattern = "\\.", type = "normal" }, { pattern = { "" }, type = "comment" }, - { pattern = { "```c", "```" }, type = "string", syntax = ".c" }, { pattern = { "```c++", "```" }, type = "string", syntax = ".cpp" }, { pattern = { "```python", "```" }, type = "string", syntax = ".py" }, { pattern = { "```ruby", "```" }, type = "string", syntax = ".rb" }, @@ -26,6 +25,21 @@ syntax.add { { pattern = { "```cmake", "```" }, type = "string", syntax = ".cmake" }, { pattern = { "```d", "```" }, type = "string", syntax = ".d" }, { pattern = { "```glsl", "```" }, type = "string", syntax = ".glsl" }, + { pattern = { "```c", "```" }, type = "string", syntax = ".c" }, + { pattern = { "```julia", "```" }, type = "string", syntax = ".jl" }, + { pattern = { "```rust", "```" }, type = "string", syntax = ".rs" }, + { pattern = { "```dart", "```" }, type = "string", syntax = ".dart" }, + { pattern = { "```v", "```" }, type = "string", syntax = ".v" }, + { pattern = { "```toml", "```" }, type = "string", syntax = ".toml" }, + { pattern = { "```yaml", "```" }, type = "string", syntax = ".yaml" }, + { pattern = { "```php", "```" }, type = "string", syntax = ".php" }, + { pattern = { "```nim", "```" }, type = "string", syntax = ".nim" }, + { pattern = { "```typescript", "```" }, type = "string", syntax = ".ts" }, + { pattern = { "```rescript", "```" }, type = "string", syntax = ".res" }, + { pattern = { "```moon", "```" }, type = "string", syntax = ".moon" }, + { pattern = { "```go", "```" }, type = "string", syntax = ".go" }, + { pattern = { "```lobster", "```" }, type = "string", syntax = ".lobster" }, + { pattern = { "```liquid", "```" }, type = "string", syntax = ".liquid" }, { pattern = { "```", "```" }, type = "string" }, { pattern = { "``", "``", "\\" }, type = "string" }, { pattern = { "`", "`", "\\" }, type = "string" },