Fix parsing of [[ a =~ {$var} ]]

This commit is contained in:
Vidar Holen 2016-05-08 12:19:25 -07:00
parent 86999ded1f
commit 40136fe249
2 changed files with 3 additions and 2 deletions

View file

@ -586,8 +586,8 @@ readConditionContents single =
where
readGlobLiteral = do
id <- getNextId
s <- many1 (extglobStart <|> oneOf "{}[]$")
return $ T_Literal id s
s <- extglobStart <|> oneOf "{}[]$"
return $ T_Literal id [s]
readGroup = called "regex grouping" $ do
id <- getNextId
char '('