From c381c5746f86eb43cfce91104c47215d1563b349 Mon Sep 17 00:00:00 2001 From: Vidar Holen Date: Sun, 30 Jun 2019 17:28:15 -0700 Subject: [PATCH] Remove unnecessary lookahead in readDollarLonely --- src/ShellCheck/Parser.hs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/ShellCheck/Parser.hs b/src/ShellCheck/Parser.hs index cd4bc8f..e00e1f5 100644 --- a/src/ShellCheck/Parser.hs +++ b/src/ShellCheck/Parser.hs @@ -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"