mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-28 06:33:18 +08:00
Remove unnecessary lookahead in readDollarLonely
This commit is contained in:
@@ -1698,7 +1698,6 @@ readDollarLonely = do
|
|||||||
start <- startSpan
|
start <- startSpan
|
||||||
char '$'
|
char '$'
|
||||||
id <- endSpan start
|
id <- endSpan start
|
||||||
n <- lookAhead (anyChar <|> (eof >> return '_'))
|
|
||||||
return $ T_Literal id "$"
|
return $ T_Literal id "$"
|
||||||
|
|
||||||
prop_readHereDoc = isOk readScript "cat << foo\nlol\ncow\nfoo"
|
prop_readHereDoc = isOk readScript "cat << foo\nlol\ncow\nfoo"
|
||||||
|
Reference in New Issue
Block a user