rodolphebarbanneau / python-docstring-highlighter

Syntax highlighting for Python Docstring in VSCode.
https://marketplace.visualstudio.com/items?itemName=rodolphebarbanneau.python-docstring-highlighter
MIT License
48 stars 1 forks source link

Keywords are highlighted but variables aren't #6

Open C0rn3j opened 1 month ago

C0rn3j commented 1 month ago

image

def shell_exec(*, args:list[str]|str, timeout: int = 150) -> tuple[CommandOutput, list[str]|None]:
    """Execute a shell command with subprocess.

    Args:
        args: Command and arguments to execute.
        timeout: Maximum time in seconds to wait for the command to complete.

    Returns:
        CommandOutput: An object containing the returncode, stdout, and stderr.

    Raises:
        ShellExecError: If an error occurs during command execution.

    """
# VSC extensions
Pyright: v1.1.374 
Python: v2024.12.1

# VSC
Version: 1.92.0
Commit: b1c0a14de1414fcdaa400695b4db1c0799bc3124
Date: 2024-08-01T22:07:15.925Z
Electron: 30.3.1
ElectronBuildId: undefined
Chromium: 124.0.6367.243
Node.js: 20.15.1
V8: 12.4.254.20-electron.0
OS: Linux x64 6.9.7-arch1-1

Theme used is Night Owl, randomly tried another one and it had the same issue.

rodolphebarbanneau commented 20 hours ago

Hello, thank you for your feedback!

I believe you may be experiencing an issue similar to the one reported in #1. (see my response to debug your situation)

Bellow, you can see a screenshot of your code in my editor:

Screenshot 2024-09-20 at 16 33 39