diff options
author | rkawulak <Robert.Kawulak@gmail.com> | 2014-03-17 02:58:07 (GMT) |
---|---|---|
committer | rkawulak <Robert.Kawulak@gmail.com> | 2014-03-17 02:58:07 (GMT) |
commit | ea1ee635fccbba4273a922dab3d092dd75b195e0 (patch) | |
tree | 8fbc47b3aaae46dc29192082cdb1bbb79c759362 /src/doctokenizer.l | |
parent | 683ef76f7bf1ba929f9c263064bb5f6c8e377275 (diff) | |
download | Doxygen-ea1ee635fccbba4273a922dab3d092dd75b195e0.zip Doxygen-ea1ee635fccbba4273a922dab3d092dd75b195e0.tar.gz Doxygen-ea1ee635fccbba4273a922dab3d092dd75b195e0.tar.bz2 |
Update doctokenizer.l
Added support for Subversion fixed-length keyword syntax (see: http://sourceforge.net/p/doxygen/discussion/130996/thread/1c641a9f/).
Diffstat (limited to 'src/doctokenizer.l')
-rw-r--r-- | src/doctokenizer.l | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/doctokenizer.l b/src/doctokenizer.l index a4e6c4a..7ebe7d3 100644 --- a/src/doctokenizer.l +++ b/src/doctokenizer.l @@ -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 */ |