feat(python): revert breaking change

This reverts the update in
https://github.com/nvim-treesitter/nvim-treesitter/pull/8128 which
turned out to have further breaking consequences.

Pin the parser to the last release (tier 1) to avoid pulling in more
breaking changes.
This commit is contained in:
Christian Clason 2025-09-19 13:35:29 +02:00 committed by Christian Clason
parent c41b3b9841
commit 20fc6b1270
3 changed files with 10 additions and 8 deletions

View file

@ -227,7 +227,7 @@ jsx (queries only)[^jsx] | unstable | `HFIJ ` | | @steelsojka
[puppet](https://github.com/tree-sitter-grammars/tree-sitter-puppet) | unstable | `HFIJL` | | @amaanq [puppet](https://github.com/tree-sitter-grammars/tree-sitter-puppet) | unstable | `HFIJL` | | @amaanq
[purescript](https://github.com/postsolar/tree-sitter-purescript) | unstable | `H  JL` | | @postsolar [purescript](https://github.com/postsolar/tree-sitter-purescript) | unstable | `H  JL` | | @postsolar
[pymanifest](https://github.com/tree-sitter-grammars/tree-sitter-pymanifest) | unstable | `H  J ` | | @ObserverOfTime [pymanifest](https://github.com/tree-sitter-grammars/tree-sitter-pymanifest) | unstable | `H  J ` | | @ObserverOfTime
[python](https://github.com/tree-sitter/tree-sitter-python) | unstable | `HFIJL` | | @stsewd, @theHamsta [python](https://github.com/tree-sitter/tree-sitter-python) | stable | `HFIJL` | | @stsewd, @theHamsta
[ql](https://github.com/tree-sitter/tree-sitter-ql) | unstable | `HFIJL` | | @pwntester [ql](https://github.com/tree-sitter/tree-sitter-ql) | unstable | `HFIJL` | | @pwntester
[qmldir](https://github.com/tree-sitter-grammars/tree-sitter-qmldir) | unstable | `H  J ` | | @amaanq [qmldir](https://github.com/tree-sitter-grammars/tree-sitter-qmldir) | unstable | `H  J ` | | @amaanq
[qmljs](https://github.com/yuja/tree-sitter-qmljs) | unstable | `HF J ` | | @Decodetalkers [qmljs](https://github.com/yuja/tree-sitter-qmljs) | unstable | `HF J ` | | @Decodetalkers

View file

@ -1772,11 +1772,11 @@ return {
}, },
python = { python = {
install_info = { install_info = {
revision = '26855eabccb19c6abf499fbc5b8dc7cc9ab8bc64', revision = 'v0.25.0',
url = 'https://github.com/tree-sitter/tree-sitter-python', url = 'https://github.com/tree-sitter/tree-sitter-python',
}, },
maintainers = { '@stsewd', '@theHamsta' }, maintainers = { '@stsewd', '@theHamsta' },
tier = 2, tier = 1,
}, },
ql = { ql = {
install_info = { install_info = {

View file

@ -358,15 +358,17 @@
((class_definition ((class_definition
body: (block body: (block
(assignment (expression_statement
left: (identifier) @variable.member))) (assignment
left: (identifier) @variable.member))))
(#lua-match? @variable.member "^[%l_].*$")) (#lua-match? @variable.member "^[%l_].*$"))
((class_definition ((class_definition
body: (block body: (block
(assignment (expression_statement
left: (_ (assignment
(identifier) @variable.member)))) left: (_
(identifier) @variable.member)))))
(#lua-match? @variable.member "^[%l_].*$")) (#lua-match? @variable.member "^[%l_].*$"))
((class_definition ((class_definition