diff --git a/doc/source/fparser2.rst b/doc/source/fparser2.rst index c9e8f51b..60aaf85f 100644 --- a/doc/source/fparser2.rst +++ b/doc/source/fparser2.rst @@ -387,6 +387,15 @@ This extension will accept these expressions in Fortran 2003. Note that the Fortran 2008 standard changes the definition of the stop code to accept even more flexible expressions. +Non-standard Inquire Arguments +++++++++++++++++++++++++++++++ +The Fortran standard does not specify the handling of directories in the +`INQUIRE` statement. The Intel compiler adds the non-standard arguments +`DIRECTORY` and `DIRSPEC` to handle directories. + +The extension `inquire-directory` will accept these non-standard arguments. + + Classes ------- diff --git a/src/fparser/two/Fortran2003.py b/src/fparser/two/Fortran2003.py index d342a3f8..5ed465a5 100644 --- a/src/fparser/two/Fortran2003.py +++ b/src/fparser/two/Fortran2003.py @@ -9760,8 +9760,9 @@ class Inquire_Spec(KeywordValueBase): # R930 | STREAM = | UNFORMATTED = | WRITE = - If the extension `inquiry-directory` is enabled, it will also allow - the intel specific arguments: + If the extension `inquire-directory` is enabled, it will also allow + the intel specific arguments:: + | DIRECTORY = | DIRSPEC =