summaryrefslogtreecommitdiffstats
path: root/src/pyscanner.l
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2006-12-02 14:54:35 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2006-12-02 14:54:35 (GMT)
commitafbfacbcf5f78ab02d8ff99b5982198e4f45f6b5 (patch)
tree0af428e60324ef94f5e04cee664374d5907c36ac /src/pyscanner.l
parent7e81d44c98dbbb1bb30d623be52ca76bbd880038 (diff)
downloadDoxygen-afbfacbcf5f78ab02d8ff99b5982198e4f45f6b5.zip
Doxygen-afbfacbcf5f78ab02d8ff99b5982198e4f45f6b5.tar.gz
Doxygen-afbfacbcf5f78ab02d8ff99b5982198e4f45f6b5.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);
}