summaryrefslogtreecommitdiff
path: root/rc/core/python.kak
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2018-05-07 07:29:52 +1000
committerMaxime Coste <mawww@kakoune.org>2018-07-05 07:54:28 +1000
commitec1696960982464ead78efcaa0406c71d8acc12d (patch)
treeedca1ef620e4472697971b30e71d5ff343c96759 /rc/core/python.kak
parent3b9818c10b6f3c6fd19aa90115c4c3e14dc2d236 (diff)
Do not reparse %sh{...} strings
Automatic reparsing of %sh{...}, while convenient in many cases, can be surprising as well, and can lead to security problems: 'echo %sh{ printf "foo\necho bar" }' runs 'echo foo', then 'echo bar'. we make this danger explicit, and we fix the 'nop %sh{...}' pattern. To reparse %sh{...} strings, they can be passed to evaluate-commands, which has been fixed to work in every cases where %sh{...} reparsing was used..
Diffstat (limited to 'rc/core/python.kak')
-rw-r--r--rc/core/python.kak2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc/core/python.kak b/rc/core/python.kak
index da451413..de6aa479 100644
--- a/rc/core/python.kak
+++ b/rc/core/python.kak
@@ -41,7 +41,7 @@ add-highlighter shared/python/docstring/py-docstring/docstring fill string
add-highlighter shared/python/comment fill comment
-%sh{
+evaluate-commands %sh{
# Grammar
values="True|False|None|self|inf"
meta="import|from"