Fix python docstring highlighting

From PR:

https://github.com/lite-xl/lite-xl/pull/624

contributed by @dflock.
This commit is contained in:
Francesco Abbate 2021-10-23 15:01:16 +02:00
parent 6f732f67f9
commit ffb66cefd7
1 changed files with 10 additions and 10 deletions

View File

@ -7,9 +7,9 @@ syntax.add {
comment = "#",
patterns = {
{ pattern = { "#", "\n" }, type = "comment" },
{ pattern = { '[ruU]?"""', '"""'; '\\' }, type = "string" },
{ pattern = { '[ruU]?"', '"', '\\' }, type = "string" },
{ pattern = { "[ruU]?'", "'", '\\' }, type = "string" },
{ pattern = { '"""', '"""' }, type = "string" },
{ pattern = "0x[%da-fA-F]+", type = "number" },
{ pattern = "-?%d+[%d%.eE]*", type = "number" },
{ pattern = "-?%.?%d+", type = "number" },