summaryrefslogtreecommitdiffstats
path: root/src/pre.l
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2006-10-29 18:39:28 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2006-10-29 18:39:28 (GMT)
commitd384b6c7459cffcbb30bdd0ab06bde6f0cd12688 (patch)
tree6386fc01aea029071bdcabdf150991c7632b5fd3 /src/pre.l
parent6ad4771494b64943541d87639743de4d6618ebc4 (diff)
downloadDoxygen-d384b6c7459cffcbb30bdd0ab06bde6f0cd12688.zip
Doxygen-d384b6c7459cffcbb30bdd0ab06bde6f0cd12688.tar.gz
Doxygen-d384b6c7459cffcbb30bdd0ab06bde6f0cd12688.tar.bz2
Release-1.5.1
Diffstat (limited to 'src/pre.l')
-rw-r--r--src/pre.l18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/pre.l b/src/pre.l
index 08a8486..2b9025e 100644
--- a/src/pre.l
+++ b/src/pre.l
@@ -1222,6 +1222,7 @@ CHARLIT (("'"\\[0-7]{1,3}"'")|("'"\\."'")|("'"[^'\\\n]{1,4}"'"))
%x CopyString
%x Include
%x IncludeID
+%x EndImport
%x DefName
%x DefineArg
%x DefineText
@@ -1700,7 +1701,22 @@ CHARLIT (("'"\\[0-7]{1,3}"'")|("'"\\."'")|("'"[^'\\\n]{1,4}"'"))
<Include>[^\">\n]+[\">] {
g_incName+=yytext;
readIncludeFile(g_incName);
- BEGIN(Start);
+ if (g_isImported)
+ {
+ BEGIN(EndImport);
+ }
+ else
+ {
+ BEGIN(Start);
+ }
+ }
+<EndImport>[^\\]*/\n {
+ BEGIN(Start);
+ }
+<EndImport>\\[\r]?"\n" {
+ outputChar('\n');
+ }
+<EndImport>. {
}
<DefName>{ID}/"(" {
//printf("Define() `%s'\n",yytext);