mirror of
https://github.com/sharkdp/bat.git
synced 2026-10-26 20:16:33 +00:00
Merge pull request #3689 from janlarres/python-uv
[Python] Support uv as script runner in shebang
This commit is contained in:
2 files changed
+10
No files matched your search
@@ -18,6 +18,7 @@
|
|||||||
- Improve native man pages and command help syntax highlighting by stripping overstriking, see #3517 (@akirk)
|
- Improve native man pages and command help syntax highlighting by stripping overstriking, see #3517 (@akirk)
|
||||||
- Add `--fallback-syntax`/`--fallback-language` to apply syntax highlighting only when auto-detection fails, see #1341 (@Xavrir)
|
- Add `--fallback-syntax`/`--fallback-language` to apply syntax highlighting only when auto-detection fails, see #1341 (@Xavrir)
|
||||||
- Map `BUILD` case sensitively to Python (Starlark) for Bazel, see #3576 (@vorburger)
|
- Map `BUILD` case sensitively to Python (Starlark) for Bazel, see #3576 (@vorburger)
|
||||||
|
- Syntax highlighting for Python files using uv as script runner in shebang #3689 (@janlarres)
|
||||||
|
|
||||||
## Bugfixes
|
## Bugfixes
|
||||||
- Treat ZIP archives as binary content based on their magic header, see #3686 (@officialasishkumar)
|
- Treat ZIP archives as binary content based on their magic header, see #3686 (@officialasishkumar)
|
||||||
|
|||||||
+9
@@ -2,6 +2,15 @@ diff --git syntaxes/01_Packages/Python/Python.sublime-syntax syntaxes/01_Package
|
|||||||
index 2acd86d8..86257f7b 100644
|
index 2acd86d8..86257f7b 100644
|
||||||
--- syntaxes/01_Packages/Python/Python.sublime-syntax
|
--- syntaxes/01_Packages/Python/Python.sublime-syntax
|
||||||
+++ 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:
|
@@ -988,10 +988,6 @@ contexts:
|
||||||
- match: \}
|
- match: \}
|
||||||
scope: punctuation.section.mapping-or-set.end.python
|
scope: punctuation.section.mapping-or-set.end.python
|
||||||
|
|||||||
Reference in new issue
Block a user