From 0604e55391fc365a752d605846f459b7c46034f3 Mon Sep 17 00:00:00 2001 From: Duncan Werner Date: Mon, 17 Jul 2017 09:13:59 -0700 Subject: [PATCH] Add hex number tokenization to R language --- src/r.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/r.ts b/src/r.ts index 2caac75e..429a0802 100644 --- a/src/r.ts +++ b/src/r.ts @@ -193,6 +193,7 @@ export const language = { // Recognize positives, negatives, decimals, imaginaries, and scientific notation numbers: [ + [/0[xX][0-9a-fA-F]+/, 'number.hex'], [/-?(\d*\.)?\d+([eE][+\-]?\d+)?/, 'number'] ],