diff options
author | Keith Hall <kingkeith+github@gmail.com> | 2021-08-05 22:54:59 +0300 |
---|---|---|
committer | David Peter <sharkdp@users.noreply.github.com> | 2021-08-07 17:54:08 +0200 |
commit | 05c11964fc13b039f3797a8161aac642e3be30c7 (patch) | |
tree | 9c623284c2235a6a6ab5956a241cdfffb14a2302 | |
parent | 8ecd23eab4f30dc02e3954c6ff05fa18a5b81e34 (diff) |
add patch for Python syntax to help improve performance
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | assets/patches/Python.sublime-syntax.patch | 15 |
2 files changed, 16 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 14e383cd..b15745c8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ ## Bugfixes +- Python syntax highlighting no longer suffers from abysmal performance in specific scenarios. See #1688 (@keith-hall) ## Other diff --git a/assets/patches/Python.sublime-syntax.patch b/assets/patches/Python.sublime-syntax.patch new file mode 100644 index 00000000..36a50894 --- /dev/null +++ b/assets/patches/Python.sublime-syntax.patch @@ -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 |