Parse &&/|| as left-associative

This commit is contained in:
Vidar Holen 2022-07-18 22:12:31 -07:00
parent 363c0633e0
commit a4042f7523
2 changed files with 2 additions and 2 deletions

View file

@ -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