From e16278ee005fa75617823d21cd144a831a72dc0b Mon Sep 17 00:00:00 2001 From: Gonzalo Uceda Date: Fri, 20 Oct 2023 11:05:39 +0200 Subject: [PATCH] docs(SmartEditor): improve rawConfig example --- packages/code/src/__stories__/rawConfig.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/code/src/__stories__/rawConfig.ts b/packages/code/src/__stories__/rawConfig.ts index 227562c9f..fc9e315d9 100644 --- a/packages/code/src/__stories__/rawConfig.ts +++ b/packages/code/src/__stories__/rawConfig.ts @@ -71,8 +71,8 @@ export const rawLanguage: Language = { }, }, ], - [/:\s"(.|\n|\r)*"/, 'value'], - [/:\s[0-9]*/, 'digit'], + [/:\s"((.|-|\n|\r)*)"/, 'value'], + [/:\s[0-9]+([,.][0-9]+)?/, 'digit'], [/true|false|null/, 'boolean'], [/[{}()\[\]]/, '@brackets'], [/[;,.]/, 'delimiter'], @@ -82,9 +82,11 @@ export const rawLanguage: Language = { value: `{ "extra": { "favourites": { - "widgets": "SimpleValue", + "widgets-widgets": "SimpleValue", "inputs": "Input", - "containers": "Grid" + "containers": "Grid", + "size": 1,2333, + "height": 1.2333 }, "config": { "theme": {}