summaryrefslogtreecommitdiffstats
path: root/src/scanner.l
diff options
context:
space:
mode:
Diffstat (limited to 'src/scanner.l')
-rw-r--r--src/scanner.l19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/scanner.l b/src/scanner.l
index 3260974..870590c 100644
--- a/src/scanner.l
+++ b/src/scanner.l
@@ -1209,8 +1209,12 @@ PHPKW ("require"|"require_once"|"include"|"include_once"|"echo")[^a-zA-Z0-9_;]
if (!insidePHP)
{
current->type += " abstract ";
+ current->virt = Pure;
+ }
+ else
+ {
+ current->memSpec|=Entry::Abstract;
}
- current->virt = Pure;
lineCount();
}
<FindMembers>{B}*"inline"{BN}+ { current->memSpec|=Entry::Inline;
@@ -3295,6 +3299,19 @@ PHPKW ("require"|"require_once"|"include"|"include_once"|"echo")[^a-zA-Z0-9_;]
}
}
//printf("Adding entry `%s'\n",current->name.data());
+ if ( insidePHP)
+ {
+ if (current->type.left(6) == "final " )
+ {
+ current->type = current->type.mid(6);
+ current->memSpec |= Entry::Final;
+ }
+ if (current->type.left(9) == "abstract " )
+ {
+ current->type = current->type.mid(9);
+ current->memSpec |= Entry::Abstract;
+ }
+ }
if ( insidePHP && current->type.left(8) != "function" )
{
initEntry();