summaryrefslogtreecommitdiffstats
path: root/Source/LexerParser/cmFortranLexer.in.l
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-11-20 19:07:03 (GMT)
committerBrad King <brad.king@kitware.com>2018-11-20 19:16:26 (GMT)
commitead16adfc8dc387a59057717521976cbe7ae9067 (patch)
tree7da5cd30c2931d5831b8cc5e97219cca4219c8d5 /Source/LexerParser/cmFortranLexer.in.l
parent05a2ca7f87b9ae73f373e9967fde1ee5210e33af (diff)
downloadCMake-ead16adfc8dc387a59057717521976cbe7ae9067.zip
CMake-ead16adfc8dc387a59057717521976cbe7ae9067.tar.gz
CMake-ead16adfc8dc387a59057717521976cbe7ae9067.tar.bz2
Fortran: Fix module dependency scanning with upper-case SUBMODULE
The lexical token expression added by commit v3.7.0-rc1~73^2~1 (Fortran: Add support for submodule syntax in dependency scanning, 2016-09-05) has a typo and does not match upper-case `B` in `SUBMODULE`. Fix it. Fixes: #18595
Diffstat (limited to 'Source/LexerParser/cmFortranLexer.in.l')
-rw-r--r--Source/LexerParser/cmFortranLexer.in.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/LexerParser/cmFortranLexer.in.l b/Source/LexerParser/cmFortranLexer.in.l
index 9acba4c..b7e837b 100644
--- a/Source/LexerParser/cmFortranLexer.in.l
+++ b/Source/LexerParser/cmFortranLexer.in.l
@@ -146,7 +146,7 @@ $[ \t]*endif { return F90PPR_ENDIF; }
[Ii][Nn][Cc][Ll][Uu][Dd][Ee] { return INCLUDE; }
[Ii][Nn][Tt][Ee][Rr][Ff][Aa][Cc][Ee] { return INTERFACE; }
[Mm][Oo][Dd][Uu][Ll][Ee] { return MODULE; }
-[Ss][Uu][bb][Mm][Oo][Dd][Uu][Ll][Ee] { return SUBMODULE; }
+[Ss][Uu][Bb][Mm][Oo][Dd][Uu][Ll][Ee] { return SUBMODULE; }
[Uu][Ss][Ee] { return USE; }
[a-zA-Z_][a-zA-Z_0-9]* {