rename 'ViLDfa' structure to 'ViHlDfa' since this DFA implements both vi's 'h' motion and vi's 'l' motion
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
structure ViLDfa =
|
structure ViHlDfa =
|
||||||
struct
|
struct
|
||||||
val startState: Word8.word = 0w0
|
val startState: Word8.word = 0w0
|
||||||
val notNewlineState: Word8.word = 0w1
|
val notNewlineState: Word8.word = 0w1
|
||||||
@@ -82,7 +82,7 @@ struct
|
|||||||
str :: tl =>
|
str :: tl =>
|
||||||
loop
|
loop
|
||||||
(String.size str - 1, absIdx, str, tl, currentState, counter)
|
(String.size str - 1, absIdx, str, tl, currentState, counter)
|
||||||
| [] => absIdx
|
| [] => 0
|
||||||
else
|
else
|
||||||
let
|
let
|
||||||
val chr = String.sub (str, idx)
|
val chr = String.sub (str, idx)
|
||||||
@@ -108,6 +108,6 @@ struct
|
|||||||
val fStart = loop
|
val fStart = loop
|
||||||
end)
|
end)
|
||||||
|
|
||||||
val next = ViL.next
|
val l = ViL.next
|
||||||
val prev = ViH.prev
|
val h = ViH.prev
|
||||||
end
|
end
|
||||||
@@ -56,8 +56,8 @@ struct
|
|||||||
val viDlr = ViDlrDfa.next
|
val viDlr = ViDlrDfa.next
|
||||||
val viDlrForDelete = ViDlrDfa.nextForDelete
|
val viDlrForDelete = ViDlrDfa.nextForDelete
|
||||||
|
|
||||||
val viL = ViLDfa.next
|
val viL = ViHlDfa.l
|
||||||
val viH = ViLDfa.prev
|
val viH = ViHlDfa.h
|
||||||
|
|
||||||
fun helpGetCursorColumn (distanceFromLine, strList, lineList) =
|
fun helpGetCursorColumn (distanceFromLine, strList, lineList) =
|
||||||
case (strList, lineList) of
|
case (strList, lineList) of
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ in
|
|||||||
fcore/cursor-dfa/vi-word-dfa.sml
|
fcore/cursor-dfa/vi-word-dfa.sml
|
||||||
fcore/cursor-dfa/vi-caps-word-dfa.sml
|
fcore/cursor-dfa/vi-caps-word-dfa.sml
|
||||||
fcore/cursor-dfa/vi-dlr-dfa.sml
|
fcore/cursor-dfa/vi-dlr-dfa.sml
|
||||||
fcore/cursor-dfa/vi-l-dfa.sml
|
fcore/cursor-dfa/vi-hl-dfa.sml
|
||||||
fcore/rect.sml
|
fcore/rect.sml
|
||||||
fcore/pipe-cursor.sml
|
fcore/pipe-cursor.sml
|
||||||
end
|
end
|
||||||
|
|||||||
2
shf.mlb
2
shf.mlb
@@ -34,7 +34,7 @@ in
|
|||||||
fcore/cursor-dfa/vi-word-dfa.sml
|
fcore/cursor-dfa/vi-word-dfa.sml
|
||||||
fcore/cursor-dfa/vi-caps-word-dfa.sml
|
fcore/cursor-dfa/vi-caps-word-dfa.sml
|
||||||
fcore/cursor-dfa/vi-dlr-dfa.sml
|
fcore/cursor-dfa/vi-dlr-dfa.sml
|
||||||
fcore/cursor-dfa/vi-l-dfa.sml
|
fcore/cursor-dfa/vi-hl-dfa.sml
|
||||||
fcore/rect.sml
|
fcore/rect.sml
|
||||||
fcore/pipe-cursor.sml
|
fcore/pipe-cursor.sml
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user