Not sure what exactly went wrong there with that last merge. Anyways, this should fix it.
I think it could be useful to move a few patterns out of the "types" and "procedures" contexts:
in|out|inout could be moved from "types" into "constants" and maybe use the scope support.constant for them?
the intrinsicFunctions and intrinsicSubroutines can be prepended in the "function-call" context
With that, "types", "procedures" and "modules" could be moved back into "main", because the rest of these contexts describe procedure, module or variable declarations and should never occur withing parentheses or brackets.
Fix #42.
Not sure what exactly went wrong there with that last merge. Anyways, this should fix it.
I think it could be useful to move a few patterns out of the "types" and "procedures" contexts:
in|out|inout
could be moved from "types" into "constants" and maybe use the scopesupport.constant
for them?intrinsicFunction
s andintrinsicSubroutine
s can be prepended in the "function-call" contextWith that, "types", "procedures" and "modules" could be moved back into "main", because the rest of these contexts describe procedure, module or variable declarations and should never occur withing parentheses or brackets.
But I can do that in a later pull request.