Fix Broxygen confusing scoped id at start of line as function parameter.

This commit is contained in:
Jon Siwek 2011-12-07 17:08:38 -06:00
parent ab315949d6
commit 80b24513e7
3 changed files with 6 additions and 2 deletions

View file

@ -183,6 +183,8 @@ export {
## Summarize "an_event" here.
## Give more details about "an_event" here.
## Example::an_event should not be confused as a parameter
##
## name: describe the argument here
global an_event: event(name: string);

View file

@ -167,7 +167,7 @@ ESCSEQ (\\([^\n]|[0-7]+|x[[:xdigit:]]+))
return TOK_POST_DOC;
}
<DOC>##{OWS}{ID}:.* {
<DOC>##{OWS}{ID}:[^:].* {
const char* id_start = skip_whitespace(yytext + 2);
yylval.str = copy_string(canon_doc_func_param(id_start).c_str());
return TOK_DOC;
@ -181,7 +181,7 @@ ESCSEQ (\\([^\n]|[0-7]+|x[[:xdigit:]]+))
}
}
##{OWS}{ID}:.* {
##{OWS}{ID}:[^:].* {
if ( generate_documentation )
{
// Comment is documenting either a function parameter or return type,

View file

@ -217,6 +217,8 @@ Events
Summarize "an_event" here.
Give more details about "an_event" here.
Example::an_event should not be confused as a parameter
:param name: describe the argument here