summaryrefslogtreecommitdiffstats
path: root/src/pycode.l
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2019-08-06 18:30:19 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2019-08-06 18:30:19 (GMT)
commitc60743a4b63f71f2cced85b729cc0d32b66e0500 (patch)
tree33a1b18dfdc6a1a21a166b912fd111530aa5f828 /src/pycode.l
parent533c5cadfad41763f294c49f8cb7a19fbc5a19d8 (diff)
downloadDoxygen-c60743a4b63f71f2cced85b729cc0d32b66e0500.zip
Doxygen-c60743a4b63f71f2cced85b729cc0d32b66e0500.tar.gz
Doxygen-c60743a4b63f71f2cced85b729cc0d32b66e0500.tar.bz2
Some fixes and restructuring
- moved unescapeCharsInString to util.cpp - restructured flow keyword counting - make flow keyword counting work for python and fortran code as well
Diffstat (limited to 'src/pycode.l')
-rw-r--r--src/pycode.l8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/pycode.l b/src/pycode.l
index 3d57727..0f04baa 100644
--- a/src/pycode.l
+++ b/src/pycode.l
@@ -1173,6 +1173,10 @@ TARGET ({IDENTIFIER}|"("{TARGET_LIST}")"|"["{TARGET_LIST}"]"|{ATTRIBUT
}
{FLOWKW} {
+ if (g_currentMemberDef && g_currentMemberDef->isFunction())
+ {
+ g_currentMemberDef->incrementFlowKeyWordCount();
+ }
startFontClass("keywordflow");
codify(yytext);
endFontClass();
@@ -1210,6 +1214,10 @@ TARGET ({IDENTIFIER}|"("{TARGET_LIST}")"|"["{TARGET_LIST}"]"|{ATTRIBUT
}
{FLOWKW} {
+ if (g_currentMemberDef && g_currentMemberDef->isFunction())
+ {
+ g_currentMemberDef->incrementFlowKeyWordCount();
+ }
startFontClass("keywordflow");
codifyLines(yytext);
endFontClass();