aboutsummaryrefslogtreecommitdiffstats
path: root/queries/python
diff options
context:
space:
mode:
authorStephan Seitz <stephan.seitz@fau.de>2020-07-09 09:36:05 +0200
committerThomas Vigouroux <39092278+vigoux@users.noreply.github.com>2020-07-09 10:00:41 +0200
commitc361d65113168b9c3318b921130606c57e961fda (patch)
treee155587bd9ea12f27def997d70ba5d1c6d15f82c /queries/python
parentlocals(lua): simplify args (diff)
downloadnvim-treesitter-c361d65113168b9c3318b921130606c57e961fda.tar
nvim-treesitter-c361d65113168b9c3318b921130606c57e961fda.tar.gz
nvim-treesitter-c361d65113168b9c3318b921130606c57e961fda.tar.bz2
nvim-treesitter-c361d65113168b9c3318b921130606c57e961fda.tar.lz
nvim-treesitter-c361d65113168b9c3318b921130606c57e961fda.tar.xz
nvim-treesitter-c361d65113168b9c3318b921130606c57e961fda.tar.zst
nvim-treesitter-c361d65113168b9c3318b921130606c57e961fda.zip
Python highlights: Surround type subscript query with (type ...)
Diffstat (limited to 'queries/python')
-rw-r--r--queries/python/highlights.scm5
1 files changed, 3 insertions, 2 deletions
diff --git a/queries/python/highlights.scm b/queries/python/highlights.scm
index 9369d7877..c1e6bf1d7 100644
--- a/queries/python/highlights.scm
+++ b/queries/python/highlights.scm
@@ -49,8 +49,9 @@
name: (identifier) @function)
(type (identifier) @type)
-(subscript
- (identifier) @type) ; type subscript: Tuple[int]
+(type
+ (subscript
+ (identifier) @type)) ; type subscript: Tuple[int]
((call
function: (identifier) @isinstance