diff --git a/src/bsl_helper.js b/src/bsl_helper.js index 18621b6..619eb6f 100644 --- a/src/bsl_helper.js +++ b/src/bsl_helper.js @@ -2443,7 +2443,7 @@ class bslHelper { previous_ref: false, column: var_match.range.startColumn + varName.length }); - if (var_match.matches[1].indexOf('[') == 0) + if (var_match.matches[1] && var_match.matches[1].indexOf('[') == 0) stack.push({ var: engLang ? 'get' : 'получить', line: position.lineNumber,