From 31d6b063d9c85532ddf9342d4f7d83aeb3da984e Mon Sep 17 00:00:00 2001 From: Vidar Holen Date: Wed, 10 Jan 2018 21:12:22 -0800 Subject: [PATCH] Improve indented here doc token message. --- ShellCheck/Parser.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ShellCheck/Parser.hs b/ShellCheck/Parser.hs index 3ee34db..5a5eaa5 100644 --- a/ShellCheck/Parser.hs +++ b/ShellCheck/Parser.hs @@ -1703,7 +1703,7 @@ readPendingHereDocs = do verifyHereDoc dashed quoted spacing hereInfo = do when (dashed == Undashed && spacing /= "") $ - parseNote ErrorC 1039 "Use <<- instead of << if you want to indent the end token." + parseNote ErrorC 1039 "Remove indentation before end token (or use <<- and indent with tabs)." when (dashed == Dashed && filter (/= '\t') spacing /= "" ) $ parseNote ErrorC 1040 "When using <<-, you can only indent with tabs." return ()