From 3fef6f602349303c61986f5850849d4861e01924 Mon Sep 17 00:00:00 2001 From: calvin Date: Fri, 29 Aug 2003 11:58:59 +0000 Subject: [PATCH] fix js script comment line parsing git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@1026 e7d03fd6-7b0d-0410-9947-9c21f3af8025 --- linkcheck/parser/htmllex.c | 11 +++++------ linkcheck/parser/htmllex.l | 2 +- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/linkcheck/parser/htmllex.c b/linkcheck/parser/htmllex.c index 4ae879cb..1c6390a9 100644 --- a/linkcheck/parser/htmllex.c +++ b/linkcheck/parser/htmllex.c @@ -3624,7 +3624,7 @@ static yyconst flex_int32_t yy_nxt[][256] = { 53, 174, 174, 174, 174, 174, 174, 174, 174, 174, - 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, + -102, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 175, 174, 174, 174, 174, @@ -5899,7 +5899,7 @@ static yyconst flex_int32_t yy_nxt[][256] = { 53, 174, 174, 174, 174, 174, 174, 174, 174, 174, - 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, + -174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, -174, 174, 174, 174, 174, @@ -5931,7 +5931,7 @@ static yyconst flex_int32_t yy_nxt[][256] = { 53, 215, 215, 215, 215, 215, 215, 215, 215, 215, - 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, + -175, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, @@ -7195,7 +7195,7 @@ static yyconst flex_int32_t yy_nxt[][256] = { 53, 215, 215, 215, 215, 215, 215, 215, 215, 215, - 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, + -215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, @@ -9853,7 +9853,6 @@ YY_RULE_SETUP } YY_BREAK case 56: -/* rule 56 can match eol */ YY_RULE_SETUP #line 590 "htmllex.l" { @@ -10518,7 +10517,7 @@ YY_RULE_SETUP #line 1032 "htmllex.l" ECHO; YY_BREAK -#line 10522 "htmllex.c" +#line 10521 "htmllex.c" case YY_END_OF_BUFFER: { diff --git a/linkcheck/parser/htmllex.l b/linkcheck/parser/htmllex.l index 30ab5571..8597f7be 100644 --- a/linkcheck/parser/htmllex.l +++ b/linkcheck/parser/htmllex.l @@ -587,7 +587,7 @@ RX_DATA [-a-zA-Z0-9_:]+ BEGIN(S_SCRIPT); } --([^-]+|-[^>]+) { +-([^-\n]+|-[^>\n]+) { UPDATE_BUFPOS; UPDATE_LINE; APPEND_TO_TMP(yyleng);