mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-08 05:51:09 -07:00
Change getNextId to create a zero width span at new id
This commit is contained in:
parent
e717802de1
commit
b9a9eb2529
1 changed files with 3 additions and 7 deletions
|
@ -185,8 +185,9 @@ getNextIdAt sourcepos = do
|
|||
|
||||
getNextId :: Monad m => SCParser m Id
|
||||
getNextId = do
|
||||
pos <- getPosition
|
||||
getNextIdAt pos
|
||||
start <- startSpan
|
||||
id <- endSpan start
|
||||
return id
|
||||
|
||||
data IncompleteInterval = IncompleteInterval SourcePos
|
||||
|
||||
|
@ -204,11 +205,6 @@ endSpan (IncompleteInterval start) = do
|
|||
}
|
||||
return id
|
||||
|
||||
zeroWidthSpan = do
|
||||
start <- startSpan
|
||||
id <- endSpan start
|
||||
return id
|
||||
|
||||
addToHereDocMap id list = do
|
||||
state <- getState
|
||||
let map = hereDocMap state
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue