From 72be83c2824c6d13b2cc00764a727a85f5309ea9 Mon Sep 17 00:00:00 2001 From: Christoph Brandau Date: Mon, 4 Aug 2025 14:51:07 +0200 Subject: [PATCH] fix wired namspace call in poco --- server/src/tools/semantic_tokens.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/tools/semantic_tokens.py b/server/src/tools/semantic_tokens.py index b2f762e..80d4197 100644 --- a/server/src/tools/semantic_tokens.py +++ b/server/src/tools/semantic_tokens.py @@ -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", []))