diff --git a/lua/nvim-treesitter/parsers.lua b/lua/nvim-treesitter/parsers.lua index 49d2a3bed..315e20ea4 100644 --- a/lua/nvim-treesitter/parsers.lua +++ b/lua/nvim-treesitter/parsers.lua @@ -1779,8 +1779,8 @@ return { }, python = { install_info = { - revision = 'v0.25.0', - url = 'https://github.com/tree-sitter/tree-sitter-python', + revision = 'v0.25.2', + url = 'https://github.com/tree-sitter/py-tree-sitter', }, maintainers = { '@stsewd', '@theHamsta' }, tier = 1, diff --git a/runtime/queries/python/highlights.scm b/runtime/queries/python/highlights.scm index 1b046d699..b7c2772a0 100644 --- a/runtime/queries/python/highlights.scm +++ b/runtime/queries/python/highlights.scm @@ -81,8 +81,10 @@ ; doc-strings (expression_statement - (string - (string_content) @spell) @string.documentation) + (expression + (primary_expression + (string + (string_content) @spell))) @string.documentation) ; Tokens [ diff --git a/runtime/queries/python/indents.scm b/runtime/queries/python/indents.scm index 2414812a7..084fb9f72 100644 --- a/runtime/queries/python/indents.scm +++ b/runtime/queries/python/indents.scm @@ -45,16 +45,15 @@ ":" (#set! indent.immediate 1)) @indent.begin -(ERROR - "try" - . - ":" - (ERROR - (block - (expression_statement - (identifier) @_except) @indent.branch)) - (#eq? @_except "except")) - +; (ERROR +; "try" +; . +; ":" +; (ERROR +; (block +; (expression_statement +; (identifier) @_except) @indent.branch)) +; (#eq? @_except "except")) ((function_definition) @indent.begin (#set! indent.immediate 1))