change cism hint text

This commit is contained in:
AcerecA 2025-01-20 15:27:57 +01:00
parent 9f7de31dae
commit ae8a323229
1 changed files with 2 additions and 2 deletions

View File

@ -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 = "<token>"
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,
)