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 268929

Summary: c++14: digit separator
Product: cnd Reporter: soldatov <soldatov>
Component: Code ModelAssignee: petrk
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: Dev   
Hardware: PC   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description soldatov 2016-11-10 13:36:01 UTC
In 2 cases IDE highlights '111' as a string.

int main() {
    long a0 = 1'111'111; // OK
    long a1 = 0x1'111'111; // bug
    long a2 = 0b1'111'111; // bug
    return 0;
}

Really 1'111'111, 0x1'111'111 and 0b1'111'111 is a numbers.