From 5f398903785763e984d38d729ac1d7038ba05ad8 Mon Sep 17 00:00:00 2001 From: Fabio Zadrozny Date: Fri, 20 Jan 2023 11:19:51 -0300 Subject: [PATCH] Don't add `...` continuation characters when the next word is a RF statement identifier. Fixes #859 --- robotframework-ls/language-configuration.json | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/robotframework-ls/language-configuration.json b/robotframework-ls/language-configuration.json index 56c79af779..4df4f6660b 100644 --- a/robotframework-ls/language-configuration.json +++ b/robotframework-ls/language-configuration.json @@ -49,6 +49,15 @@ "appendText": "# " } }, + // Whitelist some cases where '...' should not be added + { + "beforeText": ".*", + "afterText": "^\\s*(RETURN|ELSE|IF|TRY|EXCEPT|END|FINALLY|WHILE|BREAK|CONTINUE).*", + "action": { + "indent": "none", + "appendText": "" + } + }, // Deal with tabs separators so that the user has: Keyword|arg1arg2 // And indent to: // Keyword