tree-sitter-langs
tree-sitter-langs copied to clipboard
broken multiline string highlight in python
commit e447e2224217afc39601edcd55936389afaeb9a8 broke multiline python highlighting shown all triple quoted strings as docstring. I've make this little changes at it's fixed problem on my side:
queries/python/highlights.scm
@@ -164,7 +164,7 @@
(comment) @comment
((string) @doc
- (.match? @doc "^(\"\"\"|r\"\"\")"))
+ (.match? @doc "\)^(\"\"\"|r\"\"\")"))
(string) @string
(decorator) @function.special