aboutsummaryrefslogtreecommitdiffstats
path: root/queries/python
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2023-06-12 09:54:30 -0600
committerChristian Clason <c.clason@uni-graz.at>2025-05-12 18:43:40 +0200
commit692b051b09935653befdb8f7ba8afdb640adf17b (patch)
tree167162b6b129ae04f68c5735078521a72917c742 /queries/python
parentfeat(c-family): inherit injections (diff)
downloadnvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar
nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar.gz
nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar.bz2
nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar.lz
nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar.xz
nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar.zst
nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.zip
feat!: drop modules, general refactor and cleanup
Diffstat (limited to 'queries/python')
-rw-r--r--queries/python/folds.scm28
-rw-r--r--queries/python/highlights.scm443
-rw-r--r--queries/python/indents.scm213
-rw-r--r--queries/python/injections.scm18
-rw-r--r--queries/python/locals.scm124
5 files changed, 0 insertions, 826 deletions
diff --git a/queries/python/folds.scm b/queries/python/folds.scm
deleted file mode 100644
index ecb9352d7..000000000
--- a/queries/python/folds.scm
+++ /dev/null
@@ -1,28 +0,0 @@
-[
- (function_definition)
- (class_definition)
- (while_statement)
- (for_statement)
- (if_statement)
- (with_statement)
- (try_statement)
- (match_statement)
- (import_from_statement)
- (parameters)
- (argument_list)
- (parenthesized_expression)
- (generator_expression)
- (list_comprehension)
- (set_comprehension)
- (dictionary_comprehension)
- (tuple)
- (list)
- (set)
- (dictionary)
- (string)
-] @fold
-
-[
- (import_statement)
- (import_from_statement)
-]+ @fold
diff --git a/queries/python/highlights.scm b/queries/python/highlights.scm
deleted file mode 100644
index 00250de1b..000000000
--- a/queries/python/highlights.scm
+++ /dev/null
@@ -1,443 +0,0 @@
-; From tree-sitter-python licensed under MIT License
-; Copyright (c) 2016 Max Brunsfeld
-; Variables
-(identifier) @variable
-
-; Reset highlighting in f-string interpolations
-(interpolation) @none
-
-; Identifier naming conventions
-((identifier) @type
- (#lua-match? @type "^[A-Z].*[a-z]"))
-
-((identifier) @constant
- (#lua-match? @constant "^[A-Z][A-Z_0-9]*$"))
-
-((identifier) @constant.builtin
- (#lua-match? @constant.builtin "^__[a-zA-Z0-9_]*__$"))
-
-((identifier) @constant.builtin
- (#any-of? @constant.builtin