mirror of
https://github.com/sharkdp/bat.git
synced 2025-04-19 01:00:34 +01:00
add patch for Python syntax to help improve performance
This commit is contained in:
parent
8ecd23eab4
commit
05c11964fc
@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
## Bugfixes
|
## Bugfixes
|
||||||
|
|
||||||
|
- Python syntax highlighting no longer suffers from abysmal performance in specific scenarios. See #1688 (@keith-hall)
|
||||||
|
|
||||||
## Other
|
## Other
|
||||||
|
|
||||||
|
15
assets/patches/Python.sublime-syntax.patch
vendored
Normal file
15
assets/patches/Python.sublime-syntax.patch
vendored
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
diff --git syntaxes/01_Packages/Python/Python.sublime-syntax syntaxes/01_Packages/Python/Python.sublime-syntax
|
||||||
|
index 2acd86d8..86257f7b 100644
|
||||||
|
--- syntaxes/01_Packages/Python/Python.sublime-syntax
|
||||||
|
+++ syntaxes/01_Packages/Python/Python.sublime-syntax
|
||||||
|
@@ -988,10 +988,6 @@ contexts:
|
||||||
|
- match: \}
|
||||||
|
scope: punctuation.section.mapping-or-set.end.python
|
||||||
|
set: after-expression
|
||||||
|
- - match: (?={{simple_expression}}:|\s*\*\*)
|
||||||
|
- set: inside-dictionary
|
||||||
|
- - match: (?={{simple_expression}}[,}]|\s*\*)
|
||||||
|
- set: inside-set
|
||||||
|
- match: ','
|
||||||
|
scope: punctuation.separator.set.python
|
||||||
|
set: inside-set
|
Loading…
x
Reference in New Issue
Block a user