Skip to content

Commit

Permalink
docs(SmartEditor): improve rawConfig example
Browse files Browse the repository at this point in the history
  • Loading branch information
Gonzalo Uceda committed Oct 20, 2023
1 parent b9403bc commit e16278e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/code/src/__stories__/rawConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand All @@ -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": {}
Expand Down

0 comments on commit e16278e

Please sign in to comment.