summaryrefslogtreecommitdiff
path: root/transex3
diff options
context:
space:
mode:
Diffstat (limited to 'transex3')
-rw-r--r--transex3/source/cfglex.l21
1 files changed, 16 insertions, 5 deletions
diff --git a/transex3/source/cfglex.l b/transex3/source/cfglex.l
index 141345f2de58..afa271fdd49f 100644
--- a/transex3/source/cfglex.l
+++ b/transex3/source/cfglex.l
@@ -59,17 +59,19 @@ int bText=0;
WorkOnTokenSet( CFG_TEXT_START, yytext );
}
-"<!--"[^\>]*\> {
+
+\<[^\/\!][^\>]*\> {
bText = 0;
- WorkOnTokenSet( COMMEND, yytext );
+ WorkOnTokenSet( CFG_TAG, yytext );
}
-\<[^\/][^\>]*\> {
+"<!"DOCTYPE[^\>]*\> {
bText = 0;
WorkOnTokenSet( CFG_TAG, yytext );
}
-"<!--" {
+
+\<\!\-\- {
char c1 = 0, c2 = 0, c3 = input();
char pChar[2];
pChar[1] = 0x00;
@@ -96,7 +98,7 @@ int bText=0;
WorkOnTokenSet( CFG_CLOSETAG, yytext );
}
-\<[^\>]*\> {
+\<[^\>\!]*\> {
bText = 0;
if ( yytext[ 1 ] == '!' && yytext[ 2 ] == '-' && yytext[ 3 ] == '-' )
WorkOnTokenSet( COMMEND, yytext );
@@ -209,3 +211,12 @@ main( int argc, char* argv[])
/* return error level */
return nRetValue;
}
+
+/*"<!--"[^"-->"]*"-->" {
+ bText = 0;
+ WorkOnTokenSet( COMMEND, yytext );
+}*/
+/*"<!"[^\-].*\> {
+ bText = 0;
+ WorkOnTokenSet( CFG_TAG, yytext );
+}*/ \ No newline at end of file