fix wired namspace call in poco
This commit is contained in:
@@ -172,7 +172,7 @@ class _Highlighter(Visitor):
|
|||||||
)
|
)
|
||||||
if routine.contents == "namespace" and command.args:
|
if routine.contents == "namespace" and command.args:
|
||||||
first_arg = command.args[1]
|
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
|
line, col = first_arg.pos
|
||||||
self._tokens.append(
|
self._tokens.append(
|
||||||
(((line - 1, col - 1), len(first_arg.value), "class", []))
|
(((line - 1, col - 1), len(first_arg.value), "class", []))
|
||||||
|
|||||||
Reference in New Issue
Block a user