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