File tree 1 file changed +40
-1
lines changed
1 file changed +40
-1
lines changed Original file line number Diff line number Diff line change @@ -212,6 +212,7 @@ STARTDOCSYMS "##"
212
212
213
213
%x Search
214
214
%x SearchMemVars
215
+ %x SearchSkipValue
215
216
216
217
/* Mid-comment states */
217
218
@@ -551,8 +552,46 @@ STARTDOCSYMS "##"
551
552
BEGIN ( DoubleQuoteString );
552
553
}
553
554
\n { incLineNr (yyscanner); }
555
+ " =" {
556
+ yyextra->current ->doc .resize (0 );
557
+ yyextra->current ->brief .resize (0 );
558
+ BEGIN ( SearchSkipValue );
559
+ }
560
+ {IDENTIFIER} // identifiers
561
+ [^' "\. #a-z_A-Z=\n ]+ // other uninteresting stuff
562
+ . // anything else
563
+ }
564
+
565
+ <SearchSkipValue>{
566
+ {TRIDOUBLEQUOTE} { // start of a comment block
567
+ initTriDoubleQuoteBlock(yyscanner);
568
+ BEGIN(TripleComment);
569
+ }
570
+
571
+ {TRISINGLEQUOTE} { // start of a comment block
572
+ initTriSingleQuoteBlock(yyscanner);
573
+ BEGIN(TripleComment);
574
+ }
575
+ {STARTDOCSYMS}/[^#] { // start of a special comment
576
+ initSpecialBlock(yyscanner);
577
+ BEGIN(SpecialComment);
578
+ }
579
+ {POUNDCOMMENT} { // #
580
+ }
581
+ "' " { // start of a single quoted string
582
+ yyextra->stringContext=YY_START;
583
+ yyextra->copyString=0;
584
+ BEGIN( SingleQuoteString );
585
+ }
586
+ " \" " { // start of a double quoted string
587
+ yyextra->stringContext =YY_START;
588
+ yyextra->copyString =0 ;
589
+ BEGIN ( DoubleQuoteString );
590
+ }
591
+ \n { incLineNr (yyscanner);
592
+ BEGIN (SearchMemVars);
593
+ }
554
594
{IDENTIFIER} // identifiers
555
- [^' "\. #a-z_A-Z\n ]+ // other uninteresting stuff
556
595
. // anything else
557
596
}
558
597
You can’t perform that action at this time.
0 commit comments