From 9a3e11b7be1922b85a385bc35968e0b45d6cc0c6 Mon Sep 17 00:00:00 2001 From: Oscar Spencer Date: Sun, 9 May 2021 14:20:26 -0400 Subject: [PATCH] fix: rational highlighting (#58) --- editor-extensions/vscode/syntaxes/grain.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editor-extensions/vscode/syntaxes/grain.json b/editor-extensions/vscode/syntaxes/grain.json index 2854dfd..a981c07 100644 --- a/editor-extensions/vscode/syntaxes/grain.json +++ b/editor-extensions/vscode/syntaxes/grain.json @@ -642,11 +642,11 @@ "number": { "patterns": [ { - "match": "\\b(\\d[\\d_]*)(\\.[\\d_]*)?([eE][+-]?\\d[\\d_]*)?[fdwW]?\\b", + "match": "\\b(\\d[\\d_]*)\\s*/\\s*(\\d[\\d_]*)\\b", "name": "constant.numeric.grain" }, { - "match": "\\b(\\d[\\d_]*)\\s*/\\s*(\\d[\\d_]*)\\b", + "match": "\\b(\\d[\\d_]*)(\\.[\\d_]*)?([eE][+-]?\\d[\\d_]*)?[fdwW]?\\b", "name": "constant.numeric.grain" }, {