mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-04 20:40:02 -04:00
Add python/highlights.scm from tree-sitter-python
This commit is contained in:
parent
a5c50262d9
commit
57424533a7
2 changed files with 182 additions and 0 deletions
|
|
@ -18,6 +18,12 @@
|
|||
(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
|
||||
|
||||
|
||||
(class_definition
|
||||
name: (identifier) @definition.type) @scope
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue