Attempted to fix a problem with parsing pragmas, but I suspect it's still a bit haphazard
This commit is contained in:
parent
0d63eeb400
commit
8220630426
|
@ -358,6 +358,7 @@ maybeIndentedList :: Meta -> String -> OccParser t -> OccParser [t]
|
|||
maybeIndentedList m msg inner
|
||||
= do try indent
|
||||
vs <- many1 inner
|
||||
optional $ many1 pragma
|
||||
outdent
|
||||
return vs
|
||||
<|> do warnP m WarnParserOddity msg
|
||||
|
@ -1475,7 +1476,7 @@ process
|
|||
<|> intrinsicProc
|
||||
<|> handleSpecs (allocation <|> specification <|> claimSpec) process
|
||||
(\m s p -> A.Seq m (A.Spec m s (A.Only m p)))
|
||||
<|> (pragma >> process)
|
||||
<|> (tryXV pragma process)
|
||||
<?> "process"
|
||||
|
||||
claimSpec :: OccParser ([NameSpec], OccParser ())
|
||||
|
|
Loading…
Reference in New Issue
Block a user