diff --git a/skillls/main.py b/skillls/main.py index 12c5fef..5273580 100644 --- a/skillls/main.py +++ b/skillls/main.py @@ -93,13 +93,13 @@ class SkillLanguageServer(LanguageServer): if m := re.match(r"([a-zA-Z_][a-zA-Z_0-9]*)$", line[:col]): tok = m.group(1) else: - tok = line[col - 1] + tok = "" yield Diagnostic( Range( Position(row, col - len(tok)), Position(row, col + 1), ), - f"c-ism detected: change to `( {tok}`", + f"change `{tok}()` to `( {tok}` [cism]", DiagnosticSeverity.Hint, )