fix wired namspace call in poco #22

Merged
Christoph merged 1 commits from tcl_language_support into main 2025-08-04 12:51:43 +00:00
+1 -1
View File
@@ -172,7 +172,7 @@ class _Highlighter(Visitor):
)
if routine.contents == "namespace" and command.args:
first_arg = command.args[1]
if hasattr(first_arg, "pos") and hasattr(first_arg, "value"):
if hasattr(first_arg, "pos") and first_arg.value is not None:
line, col = first_arg.pos
self._tokens.append(
(((line - 1, col - 1), len(first_arg.value), "class", []))