Skip to content

Commit 57ff6e4

Browse files
committed
Incorrect recognition of a lex rule pattern.
The internal documentation gave the warning : ``` .../src/commentcnv.l:1865: error: include file commentcnv.l.h not found, perhaps you forgot to add its directory to INCLUDE_PATH? ``` due to the line: ``` parseIncludeOptions(yyscanner,std::string_view{yytext,static_cast<size_t>(yyleng)}; ``` more precise the part `<size_t>` that was seen as a lex rule pattern though it was inside the "code".
1 parent ce8474e commit 57ff6e4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/pre.l

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -698,6 +698,7 @@ WSopt [ \t\r]*
698698
/* start lex rule handling */
699699
<CopyLine>{RulesSharp} {
700700
if (!yyextra->lexRulesPart) REJECT;
701+
if (yyextra->curlyCount) REJECT;
701702
outputArray(yyscanner,yytext,yyleng);
702703
BEGIN(RulesPattern);
703704
}

0 commit comments

Comments
 (0)