summaryrefslogtreecommitdiffstats
path: root/src/doctokenizer.l
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2002-09-18 17:39:53 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2002-09-18 17:39:53 (GMT)
commit047ff890c6a53d02ffc96712f8e6dac03fdf3e04 (patch)
treee4abb0a58327033c27ca0d3f3c19cb9284f734a7 /src/doctokenizer.l
parentd05ad6292c701a8d10a3cc2d855b8e7e8e29397a (diff)
downloadDoxygen-047ff890c6a53d02ffc96712f8e6dac03fdf3e04.zip
Doxygen-047ff890c6a53d02ffc96712f8e6dac03fdf3e04.tar.gz
Doxygen-047ff890c6a53d02ffc96712f8e6dac03fdf3e04.tar.bz2
Release-1.2.18
Diffstat (limited to 'src/doctokenizer.l')
-rw-r--r--src/doctokenizer.l10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/doctokenizer.l b/src/doctokenizer.l
index 1ec3e44..9962e52 100644
--- a/src/doctokenizer.l
+++ b/src/doctokenizer.l
@@ -26,6 +26,7 @@
#include "doctokenizer.h"
#include "cmdmapper.h"
#include "config.h"
+#include "message.h"
#define YY_NEVER_INTERACTIVE 1
@@ -35,6 +36,7 @@ static int g_commentState;
TokenInfo *g_token = 0;
static int g_inputPos = 0;
static const char *g_inputString;
+static QCString g_fileName;
struct DocLexerContext
{
@@ -265,7 +267,6 @@ HTMLTAG "<"(("/")?){ID}({BLANK}+{ATTRIB})*">"
%x St_IntRef
%%
- /* TODO: \~lang_id */
<St_Para>\r /* skip carriage return */
<St_Para>^{LISTITEM} { /* list item */
QCString text=yytext;
@@ -585,19 +586,20 @@ HTMLTAG "<"(("/")?){ID}({BLANK}+{ATTRIB})*">"
<St_Comment>[^-\n]+ /* inside html comment */
<St_Comment>. /* inside html comment */
<*>\n {
- printf("Error: Unexpected new line character at line %d\n",yylineno);
+ warn(g_fileName,yylineno,"Error: Unexpected new line character");
}
<*>. {
- printf("Error: Unexpected character `%s' at line %d\n",yytext,yylineno);
+ warn(g_fileName,yylineno,"Error: Unexpected character `%s'",yytext);
}
%%
//--------------------------------------------------------------------------
-void doctokenizerYYinit(const char *input)
+void doctokenizerYYinit(const char *input,const char *fileName)
{
g_inputString = input;
g_inputPos = 0;
+ g_fileName = fileName;
BEGIN(St_Para);
}