summaryrefslogtreecommitdiffstats
path: root/src/doctokenizer.l
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2002-09-18 17:39:53 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2002-09-18 17:39:53 (GMT)
commit482b6bd47a106e132ff06bb410e87c8e0da643d2 (patch)
treee4abb0a58327033c27ca0d3f3c19cb9284f734a7 /src/doctokenizer.l
parentfbb8c7d1f646fd301d0eb68c892f6035e18dbb11 (diff)
downloadDoxygen-482b6bd47a106e132ff06bb410e87c8e0da643d2.zip
Doxygen-482b6bd47a106e132ff06bb410e87c8e0da643d2.tar.gz
Doxygen-482b6bd47a106e132ff06bb410e87c8e0da643d2.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);
}