summaryrefslogtreecommitdiffstats
path: root/src/pyscanner.l
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2006-12-02 14:54:35 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2006-12-02 14:54:35 (GMT)
commitd2d57f02eabbe81ea976f31e2af66c80c01a2a0b (patch)
tree0af428e60324ef94f5e04cee664374d5907c36ac /src/pyscanner.l
parentd384b6c7459cffcbb30bdd0ab06bde6f0cd12688 (diff)
downloadDoxygen-d2d57f02eabbe81ea976f31e2af66c80c01a2a0b.zip
Doxygen-d2d57f02eabbe81ea976f31e2af66c80c01a2a0b.tar.gz
Doxygen-d2d57f02eabbe81ea976f31e2af66c80c01a2a0b.tar.bz2
Release-1.5.1-20061202
Diffstat (limited to 'src/pyscanner.l')
-rw-r--r--src/pyscanner.l8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/pyscanner.l b/src/pyscanner.l
index db39ff4..6d33aef 100644
--- a/src/pyscanner.l
+++ b/src/pyscanner.l
@@ -1,6 +1,6 @@
/******************************************************************************
*
- *
+ * $Id$
*
* Copyright (C) 1997-2006 by Dimitri van Heesch.
*
@@ -695,6 +695,8 @@ STARTDOCSYMS ^{B}"##"/[^#]
initSpecialBlock();
BEGIN(SpecialComment);
}
+ {POUNDCOMMENT} { // #
+ }
"'" { // start of a single quoted string
g_stringContext=YY_START;
g_copyString=0;
@@ -705,8 +707,8 @@ STARTDOCSYMS ^{B}"##"/[^#]
g_copyString=0;
BEGIN( DoubleQuoteString );
}
- .
\n { yyLineNr++; }
+ . // anything else
}
<FunctionBody>{
@@ -1223,6 +1225,8 @@ STARTDOCSYMS ^{B}"##"/[^#]
current->program+=docBlock;
current->program+=yytext;
}
+ if (g_hideClassDocs)
+ current->startLine = yyLineNr;
g_hideClassDocs=FALSE;
BEGIN(docBlockContext);
}