Skip to content

Commit

Permalink
Don't add ... continuation characters when the next word is a RF st…
Browse files Browse the repository at this point in the history
…atement identifier. Fixes #859
  • Loading branch information
fabioz committed Jan 20, 2023
1 parent 8e7d619 commit 5f39890
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions robotframework-ls/language-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -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<tab>|arg1<tab>arg2
// And indent to:
// Keyword<tab>
Expand Down

0 comments on commit 5f39890

Please sign in to comment.