Skip to content

env uv shebang files not detected as python #7302

@OJFord

Description

@OJFord

Describe the bug

#!/usr/bin/env -S uv run --script
# ...

in a file with no extension (e.g. .py) because it's intended to be an executable

Expected behaviour

Should syntax highlight as python

Related discussion

Additional notes

I believe #!/usr/bin/env python works fine

Metadata

Metadata

Assignees

No one assigned

    Labels

    Good First IssueThis is a great opportunity to start contributing to LinguistImprovement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions