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 258658

Summary: Binary & Octal Literal
Product: javascript Reporter: Petr Pisl <ppisl>
Component: EditorAssignee: Petr Pisl <ppisl>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Linux   
Issue Type: TASK Exception Reporter:
Bug Depends on:    
Bug Blocks: 242387    
Attachments: Supporting new number literals

Description Petr Pisl 2016-04-05 13:09:33 UTC
ECMA 6 Script introduces binary and octal literals. NetBeans should color these literals in different way then other numbers.
Comment 1 Petr Pisl 2016-04-06 13:27:01 UTC
Also the code completion should offer the Number method in cases like:

0xabc.toPrecision(2);
Comment 2 Petr Pisl 2016-04-06 13:33:11 UTC
Function parserInt has to be updated in signature files according the spec. 
https://developer.mozilla.org/cs/docs/Web/JavaScript/Reference/Global_Objects/parseInt
Comment 3 Petr Pisl 2016-04-07 10:19:53 UTC
Created attachment 159145 [details]
Supporting new number literals

The screenshots shows these new features implemented in editor:

- code completion after a number literal (it has to be hex, oct or bin literal)
- mark occurrences of the methods called after a number literal
- the chars b, o and h in appropriate literal as colored in different way an the color can be customized in Toos -> Options -> Fonts and Colors tab