Permalink
Browse files

Bug 595186 - Python ignores \private tag

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 8782107300b24ac5501d8a5ada9be0859a0ee432
Showing with 0 additions and 9 deletions.
  1. +0 −9 src/pyscanner.l
View
@@ -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;
@@ -774,10 +773,6 @@ STARTDOCSYMS "##"
{
current->protection=Private;
}
else
{
current->protection=Public;
}
newEntry();
}
"cls."{IDENTIFIER}/{B}"=" {
@@ -792,10 +787,6 @@ STARTDOCSYMS "##"
{
current->protection=Private;
}
else
{
current->protection=Public;
}
newEntry();
}
{TRIDOUBLEQUOTE} { // start of a comment block

0 comments on commit 8782107

Please sign in to comment.