Skip to content

Commit

Permalink
Bug 595186 - Python ignores \private tag
Browse files Browse the repository at this point in the history
Don't overwrite the protection settings in current entry, they may result from a comment block
  • Loading branch information
albert-github committed Dec 27, 2015
1 parent aaf8255 commit 8782107
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/pyscanner.l
Expand Up @@ -401,7 +401,6 @@ static void searchFoundDef()
current->startLine = yyLineNr;
current->bodyLine = yyLineNr;
current->section = Entry::FUNCTION_SEC;
current->protection = protection = Public;
current->lang = SrcLangExt_Python;
current->virt = Normal;
current->stat = gstat;
Expand Down Expand Up @@ -774,10 +773,6 @@ STARTDOCSYMS "##"
{
current->protection=Private;
}
else
{
current->protection=Public;
}
newEntry();
}
"cls."{IDENTIFIER}/{B}"=" {
Expand All @@ -792,10 +787,6 @@ STARTDOCSYMS "##"
{
current->protection=Private;
}
else
{
current->protection=Public;
}
newEntry();
}
{TRIDOUBLEQUOTE} { // start of a comment block
Expand Down

0 comments on commit 8782107

Please sign in to comment.