fix(python): correct highlighting of docstrings

The node `expression_statement` was changed to a supertype in the python
parser, which caused the docstring query to capture all strings as
`@string.documentation`.
This commit restores the behavior as it was discussed in #7788.
This commit is contained in:
Omar Valdez 2025-09-17 23:39:57 -07:00
parent 8ab64a37ea
commit 2c13e88c31
No known key found for this signature in database

View file

@ -80,7 +80,11 @@
] @string.escape
; doc-strings
(expression_statement
(module
(string
(string_content) @spell) @string.documentation)
(block
(string
(string_content) @spell) @string.documentation)