rename 'ViLDfa' structure to 'ViHlDfa' since this DFA implements both vi's 'h' motion and vi's 'l' motion

This commit is contained in:
2025-09-17 11:02:11 +01:00
parent dbf05ec8dc
commit ad7d103f61
4 changed files with 8 additions and 8 deletions

View File

@@ -1,4 +1,4 @@
structure ViLDfa =
structure ViHlDfa =
struct
val startState: Word8.word = 0w0
val notNewlineState: Word8.word = 0w1
@@ -82,7 +82,7 @@ struct
str :: tl =>
loop
(String.size str - 1, absIdx, str, tl, currentState, counter)
| [] => absIdx
| [] => 0
else
let
val chr = String.sub (str, idx)
@@ -108,6 +108,6 @@ struct
val fStart = loop
end)
val next = ViL.next
val prev = ViH.prev
val l = ViL.next
val h = ViH.prev
end