on master help sign in
add patch for Python syntax to help improve performance
commit05c11964fc13b039f3797a8161aac642e3be30c7 authorKeith Hall <kingkeith+github@gmail.com> dateThu 5 Aug 2021, 22:54 (5 years ago) parent8ecd23e
2 files changed+16
CHANGELOG.md+1 assets/patches/Python.sublime-syntax.patch+15
CHANGELOG.md+1
@@ -5,6 +5,7 @@
55
66## Bugfixes
77
8+- Python syntax highlighting no longer suffers from abysmal performance in specific scenarios. See #1688 (@keith-hall)
89
910## Other
1011
assets/patches/Python.sublime-syntax.patchnew file+15
@@ -0,0 +1,15 @@
1+diff --git syntaxes/01_Packages/Python/Python.sublime-syntax syntaxes/01_Packages/Python/Python.sublime-syntax
2+index 2acd86d8..86257f7b 100644
3+--- syntaxes/01_Packages/Python/Python.sublime-syntax
4++++ syntaxes/01_Packages/Python/Python.sublime-syntax
5+@@ -988,10 +988,6 @@ contexts:
6+ - match: \}
7+ scope: punctuation.section.mapping-or-set.end.python
8+ set: after-expression
9+- - match: (?={{simple_expression}}:|\s*\*\*)
10+- set: inside-dictionary
11+- - match: (?={{simple_expression}}[,}]|\s*\*)
12+- set: inside-set
13+ - match: ','
14+ scope: punctuation.separator.set.python
15+ set: inside-set