diff options
| author | Stephan Seitz <stephan.seitz@fau.de> | 2020-07-09 09:36:05 +0200 |
|---|---|---|
| committer | Thomas Vigouroux <39092278+vigoux@users.noreply.github.com> | 2020-07-09 10:00:41 +0200 |
| commit | c361d65113168b9c3318b921130606c57e961fda (patch) | |
| tree | e155587bd9ea12f27def997d70ba5d1c6d15f82c /queries/python | |
| parent | locals(lua): simplify args (diff) | |
| download | nvim-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.scm | 5 |
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 |
