Add hex number tokenization to R language

This commit is contained in:
Duncan Werner 2017-07-17 09:13:59 -07:00
parent fbdcb70601
commit 0604e55391

View file

@ -193,6 +193,7 @@ export const language = <ILanguage>{
// Recognize positives, negatives, decimals, imaginaries, and scientific notation
numbers: [
[/0[xX][0-9a-fA-F]+/, 'number.hex'],
[/-?(\d*\.)?\d+([eE][+\-]?\d+)?/, 'number']
],