summaryrefslogtreecommitdiff
path: root/test/regression/1920-crash-on-python-in-docstring/script
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2020-11-23 08:45:59 +1100
committerMaxime Coste <mawww@kakoune.org>2020-11-23 08:45:59 +1100
commit14f7d2637c80258d80e5ae204e16dbb67a896ebc (patch)
tree503ce170d079f10fb639645428117302398eb9f2 /test/regression/1920-crash-on-python-in-docstring/script
parent024e0a04f21cdecc9ada1e32c4b2c62d9ddd6076 (diff)
Fix test and re-add triple_string support in python highlighting
Triple strings are now distinct from docstrings, triple strings only preceeded by blanks on the line are considered docstrings. Avoid highlighting of the closing marker using a lookahead, this is not fully correct as it will break on a double quote triple docstring containing a single quote triple string but that seems improbable enough; if we encounter this in the wild we can split the two docstring formats into separate regions.
Diffstat (limited to 'test/regression/1920-crash-on-python-in-docstring/script')
-rw-r--r--test/regression/1920-crash-on-python-in-docstring/script2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/regression/1920-crash-on-python-in-docstring/script b/test/regression/1920-crash-on-python-in-docstring/script
index a064fef7..260ebb03 100644
--- a/test/regression/1920-crash-on-python-in-docstring/script
+++ b/test/regression/1920-crash-on-python-in-docstring/script
@@ -1,5 +1,5 @@
ui_out '{ "jsonrpc": "2.0", "method": "set_ui_options", "params": [{}] }'
-ui_out '{ "jsonrpc": "2.0", "method": "draw", "params": [[[{ "face": { "fg": "black", "bg": "white", "attributes": ["final_fg","final_bg"] }, "contents": "\"" }, { "face": { "fg": "magenta", "bg": "default", "attributes": [] }, "contents": "\"\">>> " }, { "face": { "fg": "default", "bg": "default", "attributes": [] }, "contents": "\"\"\"\u000a" }]], { "fg": "default", "bg": "default", "attributes": [] }, { "fg": "blue", "bg": "default", "attributes": [] }] }'
+ui_out '{ "jsonrpc": "2.0", "method": "draw", "params": [[[{ "face": { "fg": "black", "bg": "white", "attributes": ["final_fg","final_bg"] }, "contents": "\"" }, { "face": { "fg": "cyan", "bg": "default", "attributes": [] }, "contents": "\"\">>> \"\"\"" }, { "face": { "fg": "default", "bg": "default", "attributes": [] }, "contents": "\u000a" }]], { "fg": "default", "bg": "default", "attributes": [] }, { "fg": "blue", "bg": "default", "attributes": [] }] }'
ui_out '{ "jsonrpc": "2.0", "method": "menu_hide", "params": [] }'
ui_out '{ "jsonrpc": "2.0", "method": "info_hide", "params": [] }'
ui_out '{ "jsonrpc": "2.0", "method": "draw_status", "params": [[], [{ "face": { "fg": "default", "bg": "default", "attributes": [] }, "contents": "out 1:1 " }, { "face": { "fg": "black", "bg": "yellow", "attributes": [] }, "contents": "" }, { "face": { "fg": "default", "bg": "default", "attributes": [] }, "contents": " " }, { "face": { "fg": "blue", "bg": "default", "attributes": [] }, "contents": "1 sel" }, { "face": { "fg": "default", "bg": "default", "attributes": [] }, "contents": " - client0@[kak-tests]" }], { "fg": "cyan", "bg": "default", "attributes": [] }] }'