diff --git a/src/bsl_language.js b/src/bsl_language.js index b75b3cb..c33e63a 100644 --- a/src/bsl_language.js +++ b/src/bsl_language.js @@ -330,7 +330,14 @@ define([], function () { expressions: query_expressions, operators: /[=><+\-*\/%;,]+/, tokenizer: { - root: [ + root: [ + [/([a-zA-Z\u0410-\u044F]+)(\s+)(как|as)(\s+)([a-zA-Z\u0410-\u044F]+)/, [ + {token: 'query'}, + {token: 'query'}, + {token: 'query.keyword'}, + {token: 'query'}, + {token: 'query'}, + ]], [/(как|as)(\s+)([a-zA-Z\u0410-\u044F]+)(\()/, [ {token: 'query.keyword'}, {token: 'query'},