diff --git a/src/bsl_helper.js b/src/bsl_helper.js index f28af63..f5aacc9 100644 --- a/src/bsl_helper.js +++ b/src/bsl_helper.js @@ -4340,8 +4340,9 @@ class bslHelper { static parseCommonModule(moduleName, moduleText) { - let model = monaco.editor.createModel(moduleText); - let matches = model.findMatches('(?:процедура|функция|procedure|function)\\s+([a-zA-Z0-9\u0410-\u044F_]+)\\(([a-zA-Z0-9\u0410-\u044F_,\\s=]+)\\)', true, true, false, null, true); + const model = monaco.editor.createModel(moduleText); + const pattern = '(?:процедура|функция|procedure|function)\\s+([a-zA-Z0-9\u0410-\u044F_]+)\\(([a-zA-Z0-9\u0410-\u044F_,\\s\\n="]+)\\)\\s+(?:экспорт|export)'; + const matches = model.findMatches(pattern, true, true, false, null, true); if (matches && matches.length) {