aboutsummaryrefslogtreecommitdiffstats
path: root/queries/python/highlights.scm
diff options
context:
space:
mode:
authorStephan Seitz <stephan.seitz@fau.de>2020-07-08 17:47:39 +0200
committerThomas Vigouroux <39092278+vigoux@users.noreply.github.com>2020-07-08 17:47:44 +0200
commit0e80b89935ca0a0249d04ca1cda56d7b50a239e3 (patch)
treedc4b45aa5f037ac8f6e8fe6d4c9236f3972fb37b /queries/python/highlights.scm
parentPython locals/highlights: Parameters can be optionally typed (diff)
downloadnvim-treesitter-0e80b89935ca0a0249d04ca1cda56d7b50a239e3.tar
nvim-treesitter-0e80b89935ca0a0249d04ca1cda56d7b50a239e3.tar.gz
nvim-treesitter-0e80b89935ca0a0249d04ca1cda56d7b50a239e3.tar.bz2
nvim-treesitter-0e80b89935ca0a0249d04ca1cda56d7b50a239e3.tar.lz
nvim-treesitter-0e80b89935ca0a0249d04ca1cda56d7b50a239e3.tar.xz
nvim-treesitter-0e80b89935ca0a0249d04ca1cda56d7b50a239e3.tar.zst
nvim-treesitter-0e80b89935ca0a0249d04ca1cda56d7b50a239e3.zip
Highlight complete type definition
Diffstat (limited to 'queries/python/highlights.scm')
-rw-r--r--queries/python/highlights.scm2
1 files changed, 2 insertions, 0 deletions
diff --git a/queries/python/highlights.scm b/queries/python/highlights.scm
index b41d36891..9369d7877 100644
--- a/queries/python/highlights.scm
+++ b/queries/python/highlights.scm
@@ -49,6 +49,8 @@
name: (identifier) @function)
(type (identifier) @type)
+(subscript
+ (identifier) @type) ; type subscript: Tuple[int]
((call
function: (identifier) @isinstance