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 - Binary & Octal Literal
Summary: Binary & Octal Literal
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks: 242387
  Show dependency tree
 
Reported: 2016-04-05 13:09 UTC by Petr Pisl
Modified: 2016-04-07 10:20 UTC (History)
0 users

See Also:
Issue Type: TASK
Exception Reporter:


Attachments
Supporting new number literals (79.05 KB, image/png)
2016-04-07 10:19 UTC, Petr Pisl
Details

Note You need to log in before you can comment on or make changes to this bug.
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