Skip to content

Commit c0ad557

Browse files
committed
issue #10902 Commands defined via ALIASES tag have an extra space after value
When adding the `\ialias` also an extra space is added but this was not properly removed.
1 parent 3192bd6 commit c0ad557

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/commentcnv.l

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1187,6 +1187,14 @@ SLASHopt [/]*
11871187
<CComment,ReadLine,IncludeFile,Verbatim,VerbatimCode>[\\@][a-z_A-Z][a-z_A-Z0-9-]* { // expand alias without arguments
11881188
replaceAliases(yyscanner,yytext,YY_START==ReadLine && yyextra->readLineCtx==SComment);
11891189
}
1190+
<CComment,ReadLine,IncludeFile,Verbatim,VerbatimCode>{B}[\\@]"ialias{" { // expand alias with arguments
1191+
yyextra->lastBlockContext=YY_START;
1192+
yyextra->blockCount=1;
1193+
yyextra->aliasString=yytext+1;
1194+
yyextra->aliasCmd=yytext+1;
1195+
yyextra->lastEscaped=0;
1196+
BEGIN( ReadAliasArgs );
1197+
}
11901198
<CComment,ReadLine,IncludeFile,Verbatim,VerbatimCode>[\\@][a-z_A-Z][a-z_A-Z0-9-]*"{" { // expand alias with arguments
11911199
yyextra->lastBlockContext=YY_START;
11921200
yyextra->blockCount=1;

0 commit comments

Comments
 (0)