This commit is contained in:
AcerecA 2025-01-28 21:15:20 +01:00
parent b0609eea21
commit 82d6ce586b
1 changed files with 1 additions and 1 deletions

View File

@ -165,7 +165,7 @@ class SkillLanguageServer(LanguageServer):
def _diagnose_cisms(self, doc: TextDocument) -> Generator[Diagnostic, None, None]:
for row, line in enumerate(doc.lines):
for m in finditer(
r"(?P<proc>procedure\s+)?([a-zA-Z_][a-zA-Z_0-9]+)\(", line
r"(?P<proc>procedure\s+|;.*)?([a-zA-Z_][a-zA-Z_0-9]+)\(", line
):
if not m.group("proc"):
yield Diagnostic(