mirror of
https://github.com/salexdv/bsl_console.git
synced 2024-11-28 08:48:48 +02:00
Замена findMatches -> regexp (Finder)
This commit is contained in:
parent
f32cbf6a3b
commit
63d80ab2f8
@ -367,7 +367,7 @@ class bslHelper {
|
||||
if (position == undefined)
|
||||
position = this.position;
|
||||
|
||||
let match = this.model.findPreviousMatch('[\\s\\n]', position, true)
|
||||
let match = Finder.findPreviousMatch(this.model, '[\\s\\n]', position);
|
||||
|
||||
if (match) {
|
||||
|
||||
@ -376,7 +376,7 @@ class bslHelper {
|
||||
if (match_pos.lineNumber < position.lineNumber || match_pos.lineNumber == position.lineNumber && match_pos.column < position.column) {
|
||||
|
||||
position = match_pos;
|
||||
match = this.model.findPreviousMatch('[a-zA-Z0-9\u0410-\u044F]+', position, true, false, null, true);
|
||||
match = Finder.findPreviousMatch(this.model, '[a-zA-Z0-9\u0410-\u044F]+', position);
|
||||
|
||||
if (match) {
|
||||
|
||||
@ -416,13 +416,13 @@ class bslHelper {
|
||||
|
||||
let pattern = '[a-zA-Z0-9\u0410-\u044F]+';
|
||||
let position = this.position;
|
||||
let match = this.model.findPreviousMatch(pattern, position, true, false, null, true);
|
||||
let match = Finder.findPreviousMatch(this.model, pattern, position);
|
||||
let step = 0;
|
||||
|
||||
while (match && step < nstep) {
|
||||
words.push(match.matches[0]);
|
||||
position = new monaco.Position(match.range.startLineNumber, match.range.startColumn);
|
||||
match = this.model.findPreviousMatch(pattern, position, true, false, null, true);
|
||||
match = Finder.findPreviousMatch(this.model, pattern, position);
|
||||
step++;
|
||||
}
|
||||
|
||||
@ -456,7 +456,7 @@ class bslHelper {
|
||||
|
||||
let word = '';
|
||||
|
||||
let match = this.model.findPreviousMatch('(', this.position, false);
|
||||
let match = Finder.findPreviousMatch(this.model, '\\(', this.position);
|
||||
|
||||
if (match) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user