summaryrefslogtreecommitdiff
path: root/rc/filetype/fsharp.kak
diff options
context:
space:
mode:
authorJohannes Altmanninger <aclopte@gmail.com>2020-08-12 00:30:01 +0200
committerJohannes Altmanninger <aclopte@gmail.com>2020-08-23 19:15:52 +0200
commitab76ec981ade6f0cec7fc9a153d749cf148b69f4 (patch)
tree6024500c6e4f395faaab4de168a737c3159633b8 /rc/filetype/fsharp.kak
parentca195ffd7be795b85b9429c9b4772debeff4c77d (diff)
Avoid extra indent when line does not end on keyword
For example there was an indent after a line like "echo todo" with filetype sh because the "do" in "todo" was recognised as keyword.
Diffstat (limited to 'rc/filetype/fsharp.kak')
-rw-r--r--rc/filetype/fsharp.kak2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc/filetype/fsharp.kak b/rc/filetype/fsharp.kak
index 41cde9a4..b34642f3 100644
--- a/rc/filetype/fsharp.kak
+++ b/rc/filetype/fsharp.kak
@@ -135,7 +135,7 @@ define-command -hidden fsharp-indent-on-new-line %{
# indent after line ending with =
try %{ execute-keys -draft <space> k <a-x> <a-k> =$ <ret> j <a-gt> }
# indent after line ending with "do"
- try %{ execute-keys -draft <space> k <a-x> <a-k> do$ <ret> j <a-gt> }
+ try %{ execute-keys -draft <space> k <a-x> <a-k> \bdo$ <ret> j <a-gt> }
}
}