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

Доработка подсветки синтаксиса языка запросов fixes #148

This commit is contained in:
salexdv 2021-05-26 12:12:52 +03:00
parent 9e5c88dfeb
commit 55a4f49bee

View File

@ -331,10 +331,16 @@ define([], function () {
keywords: query_keywords,
expressions: query_expressions,
operators: /[=><+\-*\/%;,]+/,
expBeforeAs: [
'КОНЕЦ', 'END'
],
tokenizer: {
root: [
[/([a-zA-Z\u0410-\u044F]+)(\s+)(как|as)(\s+)([a-zA-Z\u0410-\u044F]+)/, [
{token: 'query'},
[/([a-zA-Z\u0410-\u044F]+)(\s+)(как|as)(\s+)([a-zA-Z\u0410-\u044F0-9]+)/, [
{ cases: {
'@expBeforeAs': 'query.exp',
'@default': 'query'
}},
{token: 'query'},
{token: 'query.keyword'},
{token: 'query'},