summaryrefslogtreecommitdiff
path: root/runtime/queries/python
diff options
context:
space:
mode:
authorKirawi2021-11-03 03:00:52 +0000
committerGitHub2021-11-03 03:00:52 +0000
commitee889aaa854d0036da3bae16252bc382e50b0df6 (patch)
tree6b084b76276c1c8f7b6af331329f89f5623f3b4a /runtime/queries/python
parent7a0c4322eaeef7325878abe9a99adde4ad905f5e (diff)
Updated tree-sitter query scopes (#896)
* updated theme scopes variable.property -> variable.field property -> variable.field * updated theme scopes * update book and themes updated book and themes to reflect scope changes * wip * update more queries * update dark_plus.toml
Diffstat (limited to 'runtime/queries/python')
-rw-r--r--runtime/queries/python/highlights.scm11
1 files changed, 4 insertions, 7 deletions
diff --git a/runtime/queries/python/highlights.scm b/runtime/queries/python/highlights.scm
index f64fecb2..9131acc5 100644
--- a/runtime/queries/python/highlights.scm
+++ b/runtime/queries/python/highlights.scm
@@ -29,7 +29,7 @@
name: (identifier) @function)
(identifier) @variable
-(attribute attribute: (identifier) @property)
+(attribute attribute: (identifier) @variable.other.member)
(type (identifier) @type)
; Literals
@@ -40,14 +40,11 @@
(false)
] @constant.builtin
-[
- (integer)
- (float)
-] @number
-
+(integer) @constant.numeric.integer
+(float) @constant.numeric.float
(comment) @comment
(string) @string
-(escape_sequence) @escape
+(escape_sequence) @constant.character.escape
(interpolation
"{" @punctuation.special