summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2011-03-18 12:28:34 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2011-03-18 12:28:34 (GMT)
commit01055ab4cb79d93db1e62eb6866b4bf7b7665149 (patch)
tree738cf3cf9c37d43b32e0720c442b98ec215bae1d /src
parent4af88367aca2b3eac283c52e42f5a34002dcfb9a (diff)
downloadDoxygen-01055ab4cb79d93db1e62eb6866b4bf7b7665149.zip
Doxygen-01055ab4cb79d93db1e62eb6866b4bf7b7665149.tar.gz
Doxygen-01055ab4cb79d93db1e62eb6866b4bf7b7665149.tar.bz2
Fix for bug 644350: fixed format line continuations.
Diffstat (limited to 'src')
-rw-r--r--src/fortranscanner.l15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/fortranscanner.l b/src/fortranscanner.l
index f34ff69..6defa39 100644
--- a/src/fortranscanner.l
+++ b/src/fortranscanner.l
@@ -1225,12 +1225,13 @@ static const char* prepassFixedForm(const char* contents)
case 'C':
case 'c':
case '*':
- emptyLabel=FALSE;
- if(column==1)
+ if(column==1) {
newContents[j]='!';
- else
- newContents[j]=c;
- break;
+ emptyLabel=FALSE;
+ break;
+ } else {
+ // proceed to the next rule
+ }
default:
if(column==6 && emptyLabel) { // continuation
newContents[j]=' ';
@@ -2029,8 +2030,8 @@ void FortranLanguageScanner::parseCode(CodeOutputInterface & codeOutIntf,
bool FortranLanguageScanner::needsPreprocessing(const QCString &extension)
{
- (void)extension;
- return TRUE;
+ return !(extension==".f"||extension==".f90"||
+ extension==".f95"||extension==".f03");
}
void FortranLanguageScanner::resetCodeParserState()
{