Add function to set end pos of start id
This commit is contained in:
parent
e496b413bd
commit
0c459ae2cb
|
@ -188,6 +188,16 @@ getNextId = do
|
|||
pos <- getPosition
|
||||
getNextIdAt pos
|
||||
|
||||
endPosOfStartId s = do
|
||||
endPos <- getPosition
|
||||
state <- getState
|
||||
let setEndPos (start, _) = Just (start, Just endPos)
|
||||
let newMap = Map.update setEndPos s (positionMap state)
|
||||
putState $ state {
|
||||
lastId = s,
|
||||
positionMap = newMap
|
||||
}
|
||||
|
||||
addToHereDocMap id list = do
|
||||
state <- getState
|
||||
let map = hereDocMap state
|
||||
|
|
Loading…
Reference in New Issue