1
0
mirror of https://github.com/salexdv/bsl_console.git synced 2024-11-24 08:33:29 +02:00

Доработка описания токенов для строк #274

This commit is contained in:
salexdv 2022-04-15 10:28:40 +03:00
parent 6c10986a1c
commit c43622ec4e

View File

@ -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' }],
],