Skip to content

Commit

Permalink
Conflict between RCS tag and (e.g.) php description
Browse files Browse the repository at this point in the history
In some  languages the `$` is used to start a variable name (php, perl).
When having a description like:
```
 <b>$RRDp::error_mode</b>, <b>$RRDp::error</b>
```
this will lead to a message like:
```
warning: found </b> at different nesting level (4) than expected (2)
```
because the part `$RRDp:` is seen as start of a RCS tag and runs till the next `$`.

Though the `::` indicates here a class / namespace separator and in case of `$...:`  directly followed by a `:` this should not be seen as RCS tag.
  • Loading branch information
albert-github committed May 30, 2019
1 parent f652aa4 commit 31a668c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/doctokenizer.l
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ REFWORD_NOCV {FILEMASK}|{LABELID}|{REFWORD2_NOCV}|{REFWORD3}|{REFWORD4_NOCV}
g_token->isEMailAddr=TRUE;
return TK_URL;
}
<St_Para>"$"{ID}":"[^\n$]+"$" { /* RCS tag */
<St_Para>"$"{ID}":"[^:\n$][^\n$]*"$" { /* RCS tag */
QCString tagName(yytext+1);
int index=tagName.find(':');
g_token->name = tagName.left(index);
Expand Down

0 comments on commit 31a668c

Please sign in to comment.