summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2018-10-27 11:02:58 (GMT)
committerGitHub <noreply@github.com>2018-10-27 11:02:58 (GMT)
commite24cf547eb4859dbb5ab3526c91545ecca3975e7 (patch)
tree2358c4e311102a5e8187e29adca909d15f7ff6ce
parent35ad9444583272104b162848e59858b01be496f4 (diff)
parent53d89156855079fcf2f25fe516e6493e42e35f1e (diff)
downloadDoxygen-e24cf547eb4859dbb5ab3526c91545ecca3975e7.zip
Doxygen-e24cf547eb4859dbb5ab3526c91545ecca3975e7.tar.gz
Doxygen-e24cf547eb4859dbb5ab3526c91545ecca3975e7.tar.bz2
Merge pull request #6536 from albert-github/feature/bug_677092
Bug 677092 - single quote in HTML section of PHP breaks doxygen
-rw-r--r--src/scanner.l4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/scanner.l b/src/scanner.l
index 08bcee1..4e413be 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;
}