mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-16 10:03:08 -07:00
Parse &&/|| as left-associative
This commit is contained in:
parent
363c0633e0
commit
a4042f7523
2 changed files with 2 additions and 2 deletions
|
@ -2286,7 +2286,7 @@ readAndOr = do
|
|||
parseProblemAt apos ErrorC 1123 "ShellCheck directives are only valid in front of complete compound commands, like 'if', not e.g. individual 'elif' branches."
|
||||
|
||||
andOr <- withAnnotations annotations $
|
||||
chainr1 readPipeline $ do
|
||||
chainl1 readPipeline $ do
|
||||
op <- g_AND_IF <|> g_OR_IF
|
||||
readLineBreak
|
||||
return $ case op of T_AND_IF id -> T_AndIf id
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue