summaryrefslogtreecommitdiffstats
path: root/src/scanner.l
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2011-01-23 17:25:30 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2011-01-23 17:25:30 (GMT)
commiteba15fd2fe9a0b186fbf7b63d7eab729057c7f6b (patch)
tree56f084a80118debb8b5569e59a7435a20fc82b03 /src/scanner.l
parent2149c9cb1315b6a42457dd991171bf4fcf7d7015 (diff)
downloadDoxygen-eba15fd2fe9a0b186fbf7b63d7eab729057c7f6b.zip
Doxygen-eba15fd2fe9a0b186fbf7b63d7eab729057c7f6b.tar.gz
Doxygen-eba15fd2fe9a0b186fbf7b63d7eab729057c7f6b.tar.bz2
Release-1.7.3-20110123
Diffstat (limited to 'src/scanner.l')
-rw-r--r--src/scanner.l23
1 files changed, 19 insertions, 4 deletions
diff --git a/src/scanner.l b/src/scanner.l
index 2fdf0f2..6abd7e7 100644
--- a/src/scanner.l
+++ b/src/scanner.l
@@ -2,7 +2,7 @@
*
*
*
- * Copyright (C) 1997-2010 by Dimitri van Heesch.
+ * Copyright (C) 1997-2011 by Dimitri van Heesch.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation under the terms of the GNU General Public License is hereby
@@ -2109,13 +2109,28 @@ TYPEDEFPREFIX (("typedef"{BN}+)?)((("volatile"|"const"){BN}+)?)
}
<PreLineCtrl>"\""[^\n\"]*"\"" {
yyFileName = stripQuotes(yytext);
- current->program+=yytext;
+ if (lastPreLineCtrlContext==ReadBody ||
+ lastPreLineCtrlContext==ReadNSBody ||
+ lastPreLineCtrlContext==ReadBodyIntf)
+ {
+ current->program+=yytext;
+ }
}
<PreLineCtrl>. {
- current->program+=yytext;
+ if (lastPreLineCtrlContext==ReadBody ||
+ lastPreLineCtrlContext==ReadNSBody ||
+ lastPreLineCtrlContext==ReadBodyIntf)
+ {
+ current->program+=yytext;
+ }
}
<PreLineCtrl>\n {
- current->program+=yytext;
+ if (lastPreLineCtrlContext==ReadBody ||
+ lastPreLineCtrlContext==ReadNSBody ||
+ lastPreLineCtrlContext==ReadBodyIntf)
+ {
+ current->program+=yytext;
+ }
yyLineNr++;
BEGIN( lastPreLineCtrlContext );
}