Bug 274429 - KDevelop syntax highlighting missing on #include inside namespace block
Summary: KDevelop syntax highlighting missing on #include inside namespace block
Status: RESOLVED DUPLICATE of bug 217180
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (old) (show other bugs)
Version: 4.2.1
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: 4.2.0
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-29 15:37 UTC by Cyp
Modified: 2013-03-31 00:53 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cyp 2011-05-29 15:37:32 UTC
Version:           4.2.1 (using KDE 4.6.2) 
OS:                Linux

namespace Meow {
#include "test.h"
}
int main()
{
printf("%d %d\n", x, Meow::x);
}

After the above, where test.h just contains "int x;", the syntax highlighter finds the non-existent variable "x", but doesn't find the actual existing variable "Meow::x".

This apparently breaks syntax highlighting when using "Eigen::VectorXd v;" (as opposed to "using namespace Eigen; VectorXd v;").

(Kdevelop version is 4.2.2, not 4.2.1, but couldn't select that when reporting.)

Reproducible: Always
Comment 1 Milian Wolff 2011-05-30 15:35:12 UTC

*** This bug has been marked as a duplicate of bug 217180 ***
Comment 2 Aleix Pol 2013-03-31 00:53:43 UTC
Moving all the bugs from the CPP Parser. It was not well defined the difference between it and C++ Language Support and people kept reporting in both places indistinctively