[prev in list] [next in list] [prev in thread] [next in thread]
List: kdevelop-bugs
Subject: [Bug 274749] New: namespaced static variables are shown as a problem
From: Yörn Jünger <greggel () web ! de>
Date: 2011-06-02 11:53:38
Message-ID: bug-274749-40295 () http ! bugs ! kde ! org/
[Download RAW message or body]
https://bugs.kde.org/show_bug.cgi?id=274749
Summary: namespaced static variables are shown as a problem
Product: kdevelop
Version: git master
Platform: Gentoo Packages
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: Language Support: PHP
AssignedTo: kdevelop-bugs@kdevelop.org
ReportedBy: greggel@web.de
Version: git master (using KDE 4.6.3)
OS: Linux
Variables like \ns\class::$foo are shown as a problematic line.
Reproducible: Always
Here is a Fix:
diff --git a/parser/php.g b/parser/php.g
index 43b2116..7d2de35 100644
--- a/parser/php.g
+++ b/parser/php.g
@@ -621,7 +621,7 @@ expression=booleanOrExpression
expr=expr | 0
-> dimOffset ;;
- className=identifier PAAMAYIM_NEKUDOTAYIM variable=variableWithoutObjects
+ className=namespacedIdentifier PAAMAYIM_NEKUDOTAYIM
variable=variableWithoutObjects
-> staticMember ;;
LBRACE try/recover(statements=innerStatementList) RBRACE
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
KDevelop-bugs mailing list
KDevelop-bugs@kdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-bugs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic