From b71839f84c4a5a0c1d3a50f453b7e09346f186d3 Mon Sep 17 00:00:00 2001 From: rahul Date: Wed, 8 May 2024 19:15:24 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix:=20Monaco=20syntax=20highlig?= =?UTF-8?q?ht?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/web/src/components/Playground.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/web/src/components/Playground.tsx b/packages/web/src/components/Playground.tsx index 90da4f84..56676878 100644 --- a/packages/web/src/components/Playground.tsx +++ b/packages/web/src/components/Playground.tsx @@ -106,8 +106,8 @@ export default function Playground(props: PlaygroundProps): JSX.Element { markers.push({ startLineNumber: node.value.line + 1, startColumn: node.value.column + 1, - endColumn: node.valueEnd.line + 1, - endLineNumber: node.valueEnd.column + 1, + endColumn: node.valueEnd.column + 1, + endLineNumber: node.valueEnd.line + 1, message, severity: monaco.MarkerSeverity.Error, }); @@ -116,8 +116,8 @@ export default function Playground(props: PlaygroundProps): JSX.Element { markers.push({ startLineNumber: node.key.line + 1, startColumn: node.key.column + 1, - endColumn: node.keyEnd.line + 1, - endLineNumber: node.keyEnd.column + 1, + endColumn: node.keyEnd.column + 1, + endLineNumber: node.keyEnd.line + 1, message, severity: monaco.MarkerSeverity.Error, });