summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2019-11-02 14:53:49 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2019-11-02 14:53:49 (GMT)
commit3fe10a7eba7d55d2e542f3cd354d5a52701249ef (patch)
tree9055f717195272dffb58b0fd075ae25d94b40e03
parent0a9027e84737abb3ed8afe21872903c06bc88f60 (diff)
downloadDoxygen-3fe10a7eba7d55d2e542f3cd354d5a52701249ef.zip
Doxygen-3fe10a7eba7d55d2e542f3cd354d5a52701249ef.tar.gz
Doxygen-3fe10a7eba7d55d2e542f3cd354d5a52701249ef.tar.bz2
Changed implementation to use SkipString/SkipStringS.
-rw-r--r--src/code.l16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/code.l b/src/code.l
index c596bce..60d6c7e 100644
--- a/src/code.l
+++ b/src/code.l
@@ -2353,12 +2353,6 @@ RAWEND ")"[^ \t\(\)\\]{0,16}\"
g_code->codify(yytext);
g_insideProtocolList=FALSE;
}
-<SkipSharp>"\""((\\0[Xx0-9]+)|(\\.)|(.))*"\"" {
- g_code->codify(yytext);
- }
-<SkipSharp>"'"((\\0[Xx0-9]+)|(\\.)|(.))"'" {
- g_code->codify(yytext);
- }
<SkipSharp>"<" {
g_code->codify(yytext);
++g_sharpCount;
@@ -2368,6 +2362,16 @@ RAWEND ")"[^ \t\(\)\\]{0,16}\"
if (--g_sharpCount<=0)
BEGIN ( Bases );
}
+<SkipSharp>"\"" {
+ g_code->codify(yytext);
+ g_lastStringContext=YY_START;
+ BEGIN(SkipString);
+ }
+<SkipSharp>"\'" {
+ g_code->codify(yytext);
+ g_lastStringContext=YY_START;
+ BEGIN(SkipStringS);
+ }
<Bases>"(" {
g_code->codify(yytext);
g_sharpCount=1;