Skip to content

Commit

Permalink
Update doctokenizer.l
Browse files Browse the repository at this point in the history
Added support for Subversion fixed-length keyword syntax (see: http://sourceforge.net/p/doxygen/discussion/130996/thread/1c641a9f/).
  • Loading branch information
rkwk committed Mar 17, 2014
1 parent 683ef76 commit ea1ee63
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/doctokenizer.l
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,15 @@ REFWORD {LABELID}|{REFWORD2}|{REFWORD3}|{LNKWORD2}
QCString tagName(yytext+1);
int index=tagName.find(':');
g_token->name = tagName.left(index+1);
g_token->text = tagName.mid(index+2,tagName.length()-index-3);
int text_begin = index+2;
int text_end = tagName.length()-1;
if (tagName[text_begin-1]==':') /* check for Subversion fixed-length keyword */
{
++text_begin;
if (tagName[text_end-1]=='#')
--text_end;
}
g_token->text = tagName.mid(text_begin,text_end-text_begin);
return TK_RCSTAG;
}
<St_Para,St_HtmlOnly>"$("{ID}")" { /* environment variable */
Expand Down

0 comments on commit ea1ee63

Please sign in to comment.