From b9b97d293b0b693d33fa8fceee63008680a93566 Mon Sep 17 00:00:00 2001 From: Marc Durdin Date: Thu, 23 Oct 2025 11:55:17 +0200 Subject: [PATCH] fix(developer): do not treat backslash as a string escape in syntax highlighting Adjust two incorrect rules that caused backslash to be treated as an escape in strings in syntax highlighting in .kmn language. Fixes: #14988 Test-bot: skip Build-bot: skip Cherry-pick-of: #15001 --- developer/src/tike/xml/app/editor/language.keyman.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/developer/src/tike/xml/app/editor/language.keyman.js b/developer/src/tike/xml/app/editor/language.keyman.js index e758af12cf..3fb1cf0aaf 100644 --- a/developer/src/tike/xml/app/editor/language.keyman.js +++ b/developer/src/tike/xml/app/editor/language.keyman.js @@ -53,8 +53,8 @@ define("language.keyman", ["require", "exports"], function (require, exports) { [/\[/, { token: 'tag', bracket: '@open', next: '@virtualKey' } ], // strings - [/"([^"]|\\.)*$/, 'string.invalid' ], // non-teminated string - [/'([^']|\\.)*$/, 'string.invalid' ], // non-teminated string + [/"([^"])*$/, 'string.invalid' ], // non-teminated string + [/'([^'])*$/, 'string.invalid' ], // non-teminated string [/"/, { token: 'string.quote', bracket: '@open', next: '@stringDouble' } ], [/'/, { token: 'string.quote', bracket: '@open', next: '@stringSingle' } ], ],