This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 241982 - typedef syntax color problem
Summary: typedef syntax color problem
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 7.4
Hardware: PC Linux
: P4 normal (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-17 07:31 UTC by mug896
Modified: 2014-11-21 13:15 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mug896 2014-02-17 07:31:40 UTC
if i use typedef name same as struct name
then typedef color setting does not applied

-----------------------------------------------

if i set up typedef color to magenta then

struct aaa {
int bbb;
int ccc;
};

typedef struct aaa aaa1 <--- this one work well to magenta color
typedef struct aaa aaa <--- this one does not work but same as to struct name color
Comment 1 Alexander Simon 2014-02-17 08:29:35 UTC
Code model returns wrong type
Comment 2 VyacheslavVanin 2014-07-05 14:15:39 UTC
Also in C++

class TestClass  //  not highlighted
{
    int a;
};


typedef class
{
    int a;
}TestClass2;//  highlighted


typedef class TestClass3  // !
{
    int a;
}TestClass3;//  not highlighted

typedef class TestClass4_
{
    int a;
}TestClass4;//  highlighted


int main(int argc, char** argv) 
{
    TestClass  A;   // not highlighted
    TestClass2 B;   // highlighted
    TestClass3 C;   // not highlighted
    TestClass4 D;   // highlighted

    return 0;
}