I’m trying to configure treesitter to apply rst highlight group to docstrings in Python.
In after/queries/python/highlights.scm
I set the following:
(module . (expression_statement (string (string_content) @comment)))
That works, but if I set it to rst:
(module . (expression_statement (string (string_content) @rst)))
It goes back to highlighting docstrings the same as normal strings.
The rst parser is installed.
Any help would be appreciated, thanks.