aboutsummaryrefslogtreecommitdiff
path: root/data/plugins/language_python.lua
diff options
context:
space:
mode:
Diffstat (limited to 'data/plugins/language_python.lua')
-rw-r--r--data/plugins/language_python.lua20
1 files changed, 10 insertions, 10 deletions
diff --git a/data/plugins/language_python.lua b/data/plugins/language_python.lua
index e19caa63..60aa41a6 100644
--- a/data/plugins/language_python.lua
+++ b/data/plugins/language_python.lua
@@ -6,16 +6,16 @@ syntax.add {
headers = "^#!.*[ /]python",
comment = "#",
patterns = {
- { pattern = { "#", "\n" }, type = "comment" },
- { 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" },
- { pattern = "[%+%-=/%*%^%%<>!~|&]", type = "operator" },
- { pattern = "[%a_][%w_]*%f[(]", type = "function" },
- { pattern = "[%a_][%w_]*", type = "symbol" },
+ { pattern = { "#", "\n" }, type = "comment" },
+ { pattern = { '[ruU]?"""', '"""'; '\\' }, type = "string" },
+ { pattern = { '[ruU]?"', '"', '\\' }, type = "string" },
+ { pattern = { "[ruU]?'", "'", '\\' }, type = "string" },
+ { pattern = "0x[%da-fA-F]+", type = "number" },
+ { pattern = "-?%d+[%d%.eE]*", type = "number" },
+ { pattern = "-?%.?%d+", type = "number" },
+ { pattern = "[%+%-=/%*%^%%<>!~|&]", type = "operator" },
+ { pattern = "[%a_][%w_]*%f[(]", type = "function" },
+ { pattern = "[%a_][%w_]*", type = "symbol" },
},
symbols = {
["class"] = "keyword",