summaryrefslogtreecommitdiffstats
path: root/Source/cmDependsFortranParser.y
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2012-05-24 17:38:41 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2012-05-24 17:38:41 (GMT)
commitbc936c1cd5bfb48d7cc3da8a00f7302580ffee10 (patch)
tree8725e9c6b75e2a52b38776e77aea40683f4d61f7 /Source/cmDependsFortranParser.y
parent68d177432795f0113af9cb9efd2f428705a996a2 (diff)
parentad2107903a28e8e41b3170ee6089f7c080c49614 (diff)
downloadCMake-bc936c1cd5bfb48d7cc3da8a00f7302580ffee10.zip
CMake-bc936c1cd5bfb48d7cc3da8a00f7302580ffee10.tar.gz
CMake-bc936c1cd5bfb48d7cc3da8a00f7302580ffee10.tar.bz2
Merge topic 'fortran-include-angle'
ad21079 Fortran: Follow <>-style includes (#13239)
Diffstat (limited to 'Source/cmDependsFortranParser.y')
-rw-r--r--Source/cmDependsFortranParser.y8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmDependsFortranParser.y b/Source/cmDependsFortranParser.y
index 00d3327..5681d69 100644
--- a/Source/cmDependsFortranParser.y
+++ b/Source/cmDependsFortranParser.y
@@ -102,6 +102,7 @@ static bool cmDependsFortranParserIsKeyword(const char* word,
%token <string> CPP_TOENDL
%token <number> UNTERMINATED_STRING
%token <string> STRING WORD
+%token <string> CPP_INCLUDE_ANGLE
/*-------------------------------------------------------------------------*/
/* grammar */
@@ -192,6 +193,13 @@ keyword_stmt:
free($1);
free($2);
}
+| CPP_INCLUDE_ANGLE other EOSTMT
+ {
+ cmDependsFortranParser* parser =
+ cmDependsFortran_yyget_extra(yyscanner);
+ cmDependsFortranParser_RuleInclude(parser, $1);
+ free($1);
+ }
| include STRING other EOSTMT
{
cmDependsFortranParser* parser =