mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-07 02:31:17 +08:00
Fixed parsing for case foo \n in ..
This commit is contained in:
@@ -1289,11 +1289,12 @@ readInClause = do
|
||||
return things
|
||||
|
||||
prop_readCaseClause = isOk readCaseClause "case foo in a ) lol; cow;; b|d) fooo; esac"
|
||||
prop_readCaseClause2 = isOk readCaseClause "case foo\n in * ) echo bar;; esac"
|
||||
readCaseClause = called "case expression" $ do
|
||||
id <- getNextId
|
||||
g_Case
|
||||
word <- readNormalWord
|
||||
spacing
|
||||
allspacing
|
||||
g_In
|
||||
readLineBreak
|
||||
list <- readCaseList
|
||||
|
Reference in New Issue
Block a user