reimplement vi's 'w' command to use ViWordDfa

This commit is contained in:
2025-07-20 16:04:48 +01:00
parent 15fc36c7a4
commit 8d67c33893
4 changed files with 116 additions and 2 deletions

View File

@@ -863,8 +863,7 @@ struct
end
(* equivalent of vi's 'w' command *)
fun nextWord (lineGap, cursorIdx) =
toNextWord (lineGap, cursorIdx, helpNextWord)
val nextWord = ViWordDfa.startOfNextWord
(* equivalent of vi's 'W' command *)
val nextWORD = ViWORDDfa.startOfNextWORD