"./dtd_parse.l", line 167: warning, rule cannot be matched

the . matches one char as {special_char} does so {special_char} won't have been matched. change that for a non ">"

svn path=/trunk/; revision=16153
This commit is contained in:
Luis Ontanon 2005-10-07 08:36:23 +00:00
parent 9c38623b5a
commit 770aa5678b
1 changed files with 2 additions and 2 deletions

View File

@ -163,7 +163,7 @@ squoted ['][^\']*[']
<IN_COMMENT>{comment_stop} { BEGIN DTD; }
<DTD>{notation_tag} { BEGIN IN_NOTATION; }
<IN_NOTATION>. ;
<IN_NOTATION>[^>] ;
<IN_NOTATION>{special_stop} { BEGIN DTD; }
<DTD>{start_xmlpi} {
@ -171,7 +171,6 @@ squoted ['][^\']*[']
}
<XMLPI>{location_xmlpi} {
if(location) g_free(location);
BEGIN LOCATION;
}
@ -183,6 +182,7 @@ squoted ['][^\']*[']
<XMLPI>{stop_xmlpi} BEGIN DTD;
<LOCATION>{get_location_xmlpi} {
if(location) g_free(location);
location = g_strdup(yytext);
BEGIN DONE;
}