From c43622ec4e87402e452083d42f66a16ccac9753c Mon Sep 17 00:00:00 2001 From: salexdv Date: Fri, 15 Apr 2022 10:28:40 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D1=80=D0=B0=D0=B1=D0=BE=D1=82?= =?UTF-8?q?=D0=BA=D0=B0=20=D0=BE=D0=BF=D0=B8=D1=81=D0=B0=D0=BD=D0=B8=D1=8F?= =?UTF-8?q?=20=D1=82=D0=BE=D0=BA=D0=B5=D0=BD=D0=BE=D0=B2=20=D0=B4=D0=BB?= =?UTF-8?q?=D1=8F=20=D1=81=D1=82=D1=80=D0=BE=D0=BA=20#274?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/bsl_language.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/bsl_language.js b/src/bsl_language.js index 854d54d..e2a7e27 100644 --- a/src/bsl_language.js +++ b/src/bsl_language.js @@ -271,8 +271,8 @@ define([], function () { {token: 'query.quote', next: '@query'}, {token: 'query.keyword'} ]], - [/"([^"\\]|\\.)*$/, 'string.invalid'], [/["|]/, { token: 'string.invalid', next: '@string' }], + [/"([^"\\]|\\.)*$/, 'string.invalid'], [/\$\@"/, { token: 'string.quote', next: '@litinterpstring' }], [/\@"/, { token: 'string.quote', next: '@litstring' }], [/\$"/, { token: 'string.quote', next: '@interpolatedstring' }], @@ -341,9 +341,8 @@ define([], function () { ], string: [ [/^\s*\/\/.*$/, 'comment'], - [/[^\\"]+/, 'string'], + [/[^"]+/, 'string'], [/@escapes/, 'string.escape'], - [/\\./, 'string'], [/"/, { token: 'string.quote', next: '@pop' }], [/\|.*"/, { token: 'string.quote', next: '@pop' }], ],