summaryrefslogtreecommitdiff
path: root/Source/cmFortranLexer.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-09-05 15:54:51 -0400
committerBrad King <brad.king@kitware.com>2016-09-08 09:40:02 -0400
commit695f0d0d3a2db22d2ee3a426df8a1ec502cd471b (patch)
tree430d7aafdf9c1f28ffed28d0ed569d842f51695f /Source/cmFortranLexer.h
parent1619fb46a88accd1e6864f0c9de27ae2fd46541a (diff)
downloadcmake-695f0d0d3a2db22d2ee3a426df8a1ec502cd471b.tar.gz
cmFortranParser: Parse keywords as lexical tokens
Teach the lexer to match and return specific Fortran keywords as tokens. Update the parser to use these instead of always using a WORD token and then checking the text. This avoids extra string comparisons and will allow more grammar productions to be unambiguously added later for additional Fortran statements.
Diffstat (limited to 'Source/cmFortranLexer.h')
-rw-r--r--Source/cmFortranLexer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmFortranLexer.h b/Source/cmFortranLexer.h
index e20c0aa957..cb175ec621 100644
--- a/Source/cmFortranLexer.h
+++ b/Source/cmFortranLexer.h
@@ -337,7 +337,7 @@ extern int cmFortran_yylex (yyscan_t yyscanner);
#undef YY_DECL
#endif
-#line 176 "cmFortranLexer.in.l"
+#line 182 "cmFortranLexer.in.l"
#line 344 "cmFortranLexer.h"