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 257447 - using type declaration end usage not colored like typedef
Summary: using type declaration end usage not colored like typedef
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.1
Hardware: PC Other
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-06 19:18 UTC by Yankes
Modified: 2016-02-01 10:34 UTC (History)
0 users

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 Yankes 2016-01-06 19:18:55 UTC
When using new C++11 syntax of declaring alias with using new name aren't handled by editor coloring like old typedef alias.

-->%-->%-->%--

typedef int type1;
using type2 = int;
type1 i = 5;
type2 j = 4;

-->%-->%-->%--

`type2` don't have same color as `type1`, one use "identifer" colors and second use "typedef".


I think this should work too with templated using:

-->%-->%-->%--

template<typename T>
using ite = typename std::vector<T>::iterator;

std::vector<int> vec{ 1, 2 };
ite<int> i = vec.begin();

-->%-->%-->%--

`ite` should have too "typedef" color because it behave diffrent that normal template.
Comment 1 Alexander Simon 2016-01-18 09:45:03 UTC
fixed in enum, change set:
209c72b86e87
Comment 2 Quality Engineering 2016-01-21 02:22:11 UTC
Integrated into 'main-silver', will be available in build *201601210002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/0efcc0e093e4
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #257447 using type declaration end usage not colored like typedef
(transplanted from 209c72b86e873cbfced37b2dbf40d38cda4d1ff9)
Comment 3 ilia 2016-01-27 14:45:42 UTC
  Fixes of this bug:
    http://hg.netbeans.org/releases/rev/209c72b86e87
Comment 4 soldatov 2016-02-01 10:34:17 UTC
Verified in NetBeans IDE 8.1 (Build 201601300101)