summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2016-09-02 17:13:14 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2016-09-03 09:52:00 (GMT)
commita19feec4a7864dc17fcb570330ae2f7b9a5c6e45 (patch)
tree137b8c79bc8f9cf993ad0edbc77d426722a1a7e4
parent8ca93da742e8aace10bec2176f348371bb96a064 (diff)
downloadDoxygen-a19feec4a7864dc17fcb570330ae2f7b9a5c6e45.zip
Doxygen-a19feec4a7864dc17fcb570330ae2f7b9a5c6e45.tar.gz
Doxygen-a19feec4a7864dc17fcb570330ae2f7b9a5c6e45.tar.bz2
Python strip code comments
In python the STRIP_CODE_COMMENTS didn't work properly, the "## /file" was not seen by the rule <*>{POUNDCOMMENT}" as the longer "<*>"#".* took precedence. Example file bb.py: ## \file # ## pyfie docu # \include aa.h # \include bb.py # \include cc.f # def pyfie(): pass
-rw-r--r--src/pycode.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pycode.l b/src/pycode.l
index a31a0ed..a0de80b 100644
--- a/src/pycode.l
+++ b/src/pycode.l
@@ -1422,7 +1422,7 @@ TARGET ({IDENTIFIER}|"("{TARGET_LIST}")"|"["{TARGET_LIST}"]"|{ATTRIBUT
unput(*yytext);
yy_pop_state();
}
-<*>{POUNDCOMMENT} {
+<*>{POUNDCOMMENT}.* {
if (YY_START==SingleQuoteString ||
YY_START==DoubleQuoteString ||
YY_START==TripleString