Bug 258658 - Binary & Octal Literal
Binary & Octal Literal
Status: RESOLVED FIXED
Product: javascript
Classification: Unclassified
Component: Editor
8.2
PC Linux
: P3 (vote)
: 8.2
Assigned To: Petr Pisl
issues@javascript
ecma6
:
Depends on:
Blocks: 242387
  Show dependency treegraph
 
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
:


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


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo