aboutsummaryrefslogtreecommitdiff
path: root/data/plugins
diff options
context:
space:
mode:
authorPhilip Bergwerf <philipbergwerf@gmail.com>2022-04-18 20:22:25 +0200
committerGuldoman <giulio.lettieri@gmail.com>2022-04-18 20:22:25 +0200
commit5453a27f910fdf69ccd0f9cb0cbce130615cbccd (patch)
tree998fe06ed22152a0afa45a3bcf042f6e0a11cf66 /data/plugins
parentfff10a26121e0fcada6a1b60cb263459bb6ed1f8 (diff)
downloadlite-xl-5453a27f910fdf69ccd0f9cb0cbce130615cbccd.tar.gz
lite-xl-5453a27f910fdf69ccd0f9cb0cbce130615cbccd.zip
Add triple single quotes multiline strings to `language_python`
Diffstat (limited to 'data/plugins')
-rw-r--r--data/plugins/language_python.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/data/plugins/language_python.lua b/data/plugins/language_python.lua
index 8bc6fbd4..85a7858b 100644
--- a/data/plugins/language_python.lua
+++ b/data/plugins/language_python.lua
@@ -9,6 +9,7 @@ syntax.add {
patterns = {
{ pattern = { "#", "\n" }, type = "comment" },
{ pattern = { '[ruU]?"""', '"""'; '\\' }, type = "string" },
+ { pattern = { "[ruU]?'''", "'''", '\\' }, type = "string" },
{ pattern = { '[ruU]?"', '"', '\\' }, type = "string" },
{ pattern = { "[ruU]?'", "'", '\\' }, type = "string" },
{ pattern = "0x[%da-fA-F]+", type = "number" },