diff options
author | albert-github <albert.tests@gmail.com> | 2018-10-03 11:45:30 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2018-10-03 11:45:30 (GMT) |
commit | 53d89156855079fcf2f25fe516e6493e42e35f1e (patch) | |
tree | 9ee0b855bf127e4bef24a3184e4a795177f2c19d /src/scanner.l | |
parent | d7d4d5c443887cc63211febe40d43f26dfe41bc0 (diff) | |
download | Doxygen-53d89156855079fcf2f25fe516e6493e42e35f1e.zip Doxygen-53d89156855079fcf2f25fe516e6493e42e35f1e.tar.gz Doxygen-53d89156855079fcf2f25fe516e6493e42e35f1e.tar.bz2 |
Bug 677092 - single quote in HTML section of PHP breaks doxygen
Close string also when entering a new php (`<?php`) block
Also solves:
Bug 695337 - Inline HTML containing a single apostrophe (') appears to interfere with Doxygen parsing.
Bug 156160 - Doesn't support quotes in HTML code embedded into a PHP script
Diffstat (limited to 'src/scanner.l')
-rw-r--r-- | src/scanner.l | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/scanner.l b/src/scanner.l index 4846132..515442f 100644 --- a/src/scanner.l +++ b/src/scanner.l @@ -3079,6 +3079,10 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP}) *pCopyQuotedGString+=*yytext; BEGIN( lastStringContext ); } +<CopyGString,CopyPHPGString>"<?php" { // we had an odd number of quotes. + *pCopyQuotedGString += yytext; + BEGIN( lastStringContext ); + } <CopyGString,CopyPHPGString>"/*"|"*/"|"//" { *pCopyQuotedGString+=yytext; } |