mirror of
https://github.com/salexdv/bsl_console.git
synced 2024-11-28 08:48:48 +02:00
Ошибка определения имен переменных в цикле #334
This commit is contained in:
parent
b7ece61566
commit
5f2ec0f36d
@ -3495,8 +3495,8 @@ class bslHelper {
|
||||
getLoopsVarNames(currentLine) {
|
||||
|
||||
let names = [];
|
||||
let each_pattern = '(?:для каждого|for each)\\s+([a-zA-Z0-9\u0410-\u044F_,\\s=]+)\\s+(?:из|in)';
|
||||
let for_pattern = '(?:для|for)\\s+([a-zA-Z0-9\u0410-\u044F_,\\s=]+)\\s+=.*(?:по|to)';
|
||||
let each_pattern = '(?:для каждого|for each)\\s+([a-zA-Z0-9\u0410-\u044F_,\\s=]+?)\\s+(?:из|in)';
|
||||
let for_pattern = '(?:для|for)\\s+([a-zA-Z0-9\u0410-\u044F_,\\s=]+?)\\s+=.*(?:по|to)';
|
||||
|
||||
if (currentLine == 0) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user