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

Ошибка определения имен переменных в цикле #334

This commit is contained in:
salexdv 2023-07-06 10:40:08 +03:00
parent b7ece61566
commit 5f2ec0f36d

View File

@ -3495,8 +3495,8 @@ class bslHelper {
getLoopsVarNames(currentLine) { getLoopsVarNames(currentLine) {
let names = []; let names = [];
let each_pattern = '(?:для каждого|for each)\\s+([a-zA-Z0-9\u0410-\u044F_,\\s=]+)\\s+(?:из|in)'; 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 for_pattern = '(?:для|for)\\s+([a-zA-Z0-9\u0410-\u044F_,\\s=]+?)\\s+=.*(?:по|to)';
if (currentLine == 0) { if (currentLine == 0) {