mirror of
https://github.com/sharkdp/bat
synced 2026-07-31 18:21:43 +00:00
[Python] Support uv as script runner in shebang
This commit is contained in:
+9
@@ -2,6 +2,15 @@ diff --git syntaxes/01_Packages/Python/Python.sublime-syntax syntaxes/01_Package
|
||||
index 2acd86d8..86257f7b 100644
|
||||
--- syntaxes/01_Packages/Python/Python.sublime-syntax
|
||||
+++ syntaxes/01_Packages/Python/Python.sublime-syntax
|
||||
@@ -25,7 +31,7 @@ file_extensions:
|
||||
- wscript
|
||||
- bazel
|
||||
- bzl
|
||||
-first_line_match: ^#!\s*/.*\bpython(\d(\.\d)?)?\b
|
||||
+first_line_match: ^#!\s*/.*\b(python(\d(\.\d)?)?|uv)\b
|
||||
scope: source.python
|
||||
|
||||
variables:
|
||||
@@ -988,10 +988,6 @@ contexts:
|
||||
- match: \}
|
||||
scope: punctuation.section.mapping-or-set.end.python
|
||||
|
||||
Reference in New Issue
Block a user