We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98163e4 commit c1d35c8Copy full SHA for c1d35c8
src/main/java/com/github/_1c_syntax/bsl/languageserver/utils/Modules.java
@@ -31,11 +31,15 @@
31
public class Modules {
32
33
private static final Pattern THIS_OBJECT_PATTERN = CaseInsensitivePattern.compile(
34
- "^(ЭтотОбъект|ThisObject)$"
+ "ЭтотОбъект|ThisObject"
35
);
36
37
public static boolean isThisObject(BSLParser.ComplexIdentifierContext complexIdentifier) {
38
- return THIS_OBJECT_PATTERN.matcher(complexIdentifier.IDENTIFIER().getText()).find();
+ final var identifier = complexIdentifier.IDENTIFIER();
39
+ if (identifier == null){
40
+ return false;
41
+ }
42
+ return THIS_OBJECT_PATTERN.matcher(identifier.getText()).matches();
43
}
44
45
0 commit comments