language_md: Add math delimiters
This commit is contained in:
@@ -110,6 +110,9 @@ syntax.add {
|
|||||||
{ pattern = "&#?[a-zA-Z0-9]+;", type = "keyword2" },
|
{ pattern = "&#?[a-zA-Z0-9]+;", type = "keyword2" },
|
||||||
|
|
||||||
---- Markdown rules
|
---- Markdown rules
|
||||||
|
-- math
|
||||||
|
{ pattern = { "%$%$", "%$%$", "\\" }, type = "string", syntax = ".tex"},
|
||||||
|
{ pattern = { "%$", "%$", "\\" }, type = "string", syntax = ".tex"},
|
||||||
-- code blocks
|
-- code blocks
|
||||||
{ pattern = { "```c++", "```" }, type = "string", syntax = ".cpp" },
|
{ pattern = { "```c++", "```" }, type = "string", syntax = ".cpp" },
|
||||||
{ pattern = { "```cpp", "```" }, type = "string", syntax = ".cpp" },
|
{ pattern = { "```cpp", "```" }, type = "string", syntax = ".cpp" },
|
||||||
|
|||||||
Reference in New Issue
Block a user