diff options
| author | Stephan Seitz <stephan.seitz@fau.de> | 2020-05-16 19:24:27 +0200 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2020-05-17 21:56:44 +0200 |
| commit | 57424533a77cd80accc128457ea59a7241ce0197 (patch) | |
| tree | 417e227a0cc07a8e814518974a92b58112769edd /queries/python/locals.scm | |
| parent | Add python locals.scm (diff) | |
| download | nvim-treesitter-57424533a77cd80accc128457ea59a7241ce0197.tar nvim-treesitter-57424533a77cd80accc128457ea59a7241ce0197.tar.gz nvim-treesitter-57424533a77cd80accc128457ea59a7241ce0197.tar.bz2 nvim-treesitter-57424533a77cd80accc128457ea59a7241ce0197.tar.lz nvim-treesitter-57424533a77cd80accc128457ea59a7241ce0197.tar.xz nvim-treesitter-57424533a77cd80accc128457ea59a7241ce0197.tar.zst nvim-treesitter-57424533a77cd80accc128457ea59a7241ce0197.zip | |
Add python/highlights.scm from tree-sitter-python
Diffstat (limited to 'queries/python/locals.scm')
| -rw-r--r-- | queries/python/locals.scm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/queries/python/locals.scm b/queries/python/locals.scm index 763d1b77d..bc33d306b 100644 --- a/queries/python/locals.scm +++ b/queries/python/locals.scm @@ -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 |
