mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-30 19:14:43 +00:00
Don't parse '-->' as end-of-comment in script mode. This fixes parsing errors on some sites.
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3668 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
8c4d8145a7
commit
f01a77bab1
2 changed files with 1025 additions and 1091 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -616,7 +616,7 @@ RX_DATA [-a-zA-Z0-9_:]+
|
|||
BEGIN(S_SCRIPT_STRING);
|
||||
}
|
||||
|
||||
<S_SCRIPT_COMMENT>[^\-\r\n<]+ {
|
||||
<S_SCRIPT_COMMENT>[^\r\n<]+ {
|
||||
UPDATE_LINE;
|
||||
APPEND_TO_TMP(yyleng);
|
||||
}
|
||||
|
|
@ -627,17 +627,6 @@ RX_DATA [-a-zA-Z0-9_:]+
|
|||
BEGIN(S_SCRIPT);
|
||||
}
|
||||
|
||||
<S_SCRIPT_COMMENT>-([^-\r\n]+|-[^>\r\n]+) {
|
||||
UPDATE_LINE;
|
||||
APPEND_TO_TMP(yyleng);
|
||||
}
|
||||
|
||||
<S_SCRIPT_COMMENT>--> {
|
||||
UPDATE_COLUMN;
|
||||
APPEND_TO_TMP(yyleng);
|
||||
BEGIN(S_SCRIPT);
|
||||
}
|
||||
|
||||
<S_SCRIPT_COMMENT>. {
|
||||
return T_WAIT;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue