mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-08 17:11:00 +08:00
Change getNextId to create a zero width span at new id
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user