From b0609eea21ea88f13259812277b542e2538bd890 Mon Sep 17 00:00:00 2001 From: AcerecA Date: Tue, 28 Jan 2025 21:15:09 +0100 Subject: [PATCH] remove some comments --- skillls/main.py | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/skillls/main.py b/skillls/main.py index 4638f9e..66782aa 100644 --- a/skillls/main.py +++ b/skillls/main.py @@ -173,28 +173,6 @@ class SkillLanguageServer(LanguageServer): f"change `{m.group(2)}(` to `( {m.group(2)}`", DiagnosticSeverity.Hint, ) - # for col, char in enumerate(line): - # if col > 0: - # if fullmatch(r"\w", line[col - 1]) and char == "(": - # if m := rematch(r"([a-zA-Z_][a-zA-Z_0-9]*)$", line[:col]): - # tok = m.group(1) - # r = Range( - # Position(row, col - len(tok)), - # Position(row, col + 1), - # ) - # else: - # tok = "" - # r = Range( - # Position(row, col - 1), - # Position(row, col + 1), - # ) - # yield Diagnostic( - # r, - # f"change `{tok}(` to `( {tok}` [cism]", - # DiagnosticSeverity.Hint, - # ) - - # def _diagnose_vars(self, doc: TextDocument) -> Generator[Diagnostic, None, None]: def diagnose(self, doc: TextDocument) -> None: diags: list[Diagnostic] = []