This commit is contained in:
AcerecA 2025-01-28 21:18:19 +01:00
parent 82d6ce586b
commit 37b746dc48
1 changed files with 4 additions and 1 deletions

View File

@ -192,7 +192,10 @@ class SkillLanguageServer(LanguageServer):
def _parse_assigns(self, lines: list[str]) -> None:
for row, line in enumerate(lines):
for found in finditer(r"([a-zA-Z_][a-zA-Z0-9_]*)\s*=\s+", line):
for found in finditer(
r"\b([a-zA-Z_][a-zA-Z0-9_]*)((-|~)>[a-zA-Z_][a-zA-Z0-9_]*)?\s*=\s+",
line,
):
token = found.group(1)
token_range = Range(
Position(row, found.start()),