diff options
author | Kurt Zenker <kz@openoffice.org> | 2005-11-30 12:21:49 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2005-11-30 12:21:49 +0000 |
commit | 97b28f0eb5b522e1fdda8049cb182b692835bfd7 (patch) | |
tree | 518ef88cfd6025fa6add4541e19322b0dd6e3790 /transex3 | |
parent | a4d831aef19781af33704d5ce2b2326dfab06fa6 (diff) |
INTEGRATION: CWS ivo17 (1.12.70); FILE MERGED
2005/11/29 13:03:37 ihi 1.12.70.1: #i57889# Skip comments in xcu files
Diffstat (limited to 'transex3')
-rw-r--r-- | transex3/source/cfglex.l | 21 |
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 |