mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-06 05:20:00 -04:00
Adapt Python highlights to new query syntax
This commit is contained in:
parent
51a52b85cf
commit
dfead6caca
2 changed files with 66 additions and 81 deletions
|
|
@ -30,12 +30,8 @@
|
|||
|
||||
; Function defines function and scope
|
||||
(function_definition
|
||||
name: (identifier) @definition.function) @scope
|
||||
|
||||
;; Should be extended to when syntax supported
|
||||
;(function_definition
|
||||
;name: (identifier) @definition.function
|
||||
;body: (block (expression_statement (string) @definition.function.doc)?)) @scope
|
||||
name: (identifier) @definition.function
|
||||
body: (block (expression_statement (string) @definition.doc)?)) @scope
|
||||
|
||||
|
||||
(class_definition
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue