fix wired namspace call in poco

This commit is contained in:
Christoph Brandau
2025-08-04 14:51:07 +02:00
parent fa5ea00384
commit 72be83c282
+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", []))