Remove hex, octal and binary numbers - apex doesn't support them

pull/2748/head
olane 7 years ago
parent 40dfb97e56
commit 1d66cf8412

@ -274,55 +274,6 @@ testTokenization('apex', [
]
}],
[{
line: '0x123',
tokens: [
{ startIndex: 0, type: 'number.hex.apex' }
]
}],
[{
line: '0x5_2',
tokens: [
{ startIndex: 0, type: 'number.hex.apex' }
]
}],
[{
line: '023L',
tokens: [
{ startIndex: 0, type: 'number.octal.apex' }
]
}],
[{
line: '0123l',
tokens: [
{ startIndex: 0, type: 'number.octal.apex' }
]
}],
[{
line: '05_2',
tokens: [
{ startIndex: 0, type: 'number.octal.apex' }
]
}],
[{
line: '0b1010_0101',
tokens: [
{ startIndex: 0, type: 'number.binary.apex' }
]
}],
[{
line: '0B001',
tokens: [
{ startIndex: 0, type: 'number.binary.apex' }
]
}],
[{
line: '10e3',
tokens: [
@ -528,22 +479,6 @@ testTokenization('apex', [
]
}],
[{
line: '0x52_',
tokens: [
{ startIndex: 0, type: 'number.hex.apex' },
{ startIndex: 4, type: 'identifier.apex' }
]
}],
[{
line: '052_',
tokens: [
{ startIndex: 0, type: 'number.octal.apex' },
{ startIndex: 3, type: 'identifier.apex' }
]
}],
[{
line: '23.5L',
tokens: [

@ -245,9 +245,6 @@ export const language = <ILanguage>{
// numbers
[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/, 'number.float'],
[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/, 'number.float'],
[/0[xX](@hexdigits)[Ll]?/, 'number.hex'],
[/0(@octaldigits)[Ll]?/, 'number.octal'],
[/0[bB](@binarydigits)[Ll]?/, 'number.binary'],
[/(@digits)[fFdD]/, 'number.float'],
[/(@digits)[lL]?/, 'number'],

Loading…
Cancel
Save