mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-09-21 03:11:46 +08:00
Fixed parser accepting spaces after here doc token
This commit is contained in:
@@ -1014,7 +1014,11 @@ readHereDoc = called "here document" $ do
|
|||||||
spacing
|
spacing
|
||||||
|
|
||||||
startPos <- getPosition
|
startPos <- getPosition
|
||||||
hereData <- anyChar `reluctantlyTill` (linefeed >> spacing >> (string endToken) >> (disregard whitespace <|> eof))
|
hereData <- anyChar `reluctantlyTill` do
|
||||||
|
linefeed
|
||||||
|
spacing
|
||||||
|
string endToken
|
||||||
|
disregard linefeed <|> eof
|
||||||
|
|
||||||
do
|
do
|
||||||
linefeed
|
linefeed
|
||||||
|
Reference in New Issue
Block a user