mirror of
https://github.com/koalaman/shellcheck
synced 2025-08-14 02:27:30 -07:00
Allow parsing 'time ( foo )'
This commit is contained in:
parent
459e30804f
commit
2957fb64c9
1 changed files with 2 additions and 0 deletions
|
@ -1698,6 +1698,7 @@ readTermOrNone = do
|
|||
eof
|
||||
return []
|
||||
|
||||
prop_readTerm = isOk readTerm "time ( foo; bar; )"
|
||||
readTerm = do
|
||||
allspacing
|
||||
m <- readAndOr
|
||||
|
@ -2051,6 +2052,7 @@ readFunctionDefinition = called "function" $ do
|
|||
readWithoutFunction = try $ do
|
||||
id <- getNextId
|
||||
name <- readFunctionName
|
||||
guard $ name /= "time" -- Interfers with time ( foo )
|
||||
spacing
|
||||
readParens
|
||||
return $ T_Function id (FunctionKeyword False) (FunctionParentheses True) name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue