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:
parent
9e5c88dfeb
commit
55a4f49bee
@ -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'},
|
||||
|
Loading…
Reference in New Issue
Block a user