Bug 322274

Summary: Constants inside namespaces are not properly highlighted sometimes.
Product: [Applications] kdevelop Reporter: Miquel Sabaté <mikisabate>
Component: Language Support: PHPAssignee: kdevelop-bugs-null
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: git master   
Target Milestone: 4.3.0   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Miquel Sabaté 2013-07-12 11:48:13 UTC
Imagine the following valid PHP code:

<?php

namespace Foo;
const SOMETHING = 0;
$a = SOMETHING;

KDevelop doesn't highlight the use of "SOMETHING" when it should.

Reproducible: Always
Comment 1 Miquel Sabaté 2013-07-15 15:46:59 UTC
Git commit 6d2e87e9dcce324acfde059afe87403697c4decf by Miquel Sabaté.
Committed on 15/07/2013 at 16:43.
Pushed by mssola into branch 'master'.

Mark the uses of constants inside namespaces.

REVIEW: 111517

M  +5    -0    duchain/helper.cpp
M  +22   -20   duchain/tests/uses.cpp

http://commits.kde.org/kdev-php/6d2e87e9dcce324acfde059afe87403697c4decf