aboutsummaryrefslogtreecommitdiffstats
path: root/queries/python
diff options
context:
space:
mode:
authorAmaan Qureshi <amaanq12@gmail.com>2023-04-21 20:45:47 -0400
committerAmaan Qureshi <amaanq12@gmail.com>2023-04-25 03:04:05 -0400
commit5ab25d8a1f759d6d0a825acc653f2d1c2679e0df (patch)
treeade69d6c1e7becd732cac83eaf594b6e7d216321 /queries/python
parentUpdate parsers: glimmer, smali, zig (diff)
downloadnvim-treesitter-5ab25d8a1f759d6d0a825acc653f2d1c2679e0df.tar
nvim-treesitter-5ab25d8a1f759d6d0a825acc653f2d1c2679e0df.tar.gz
nvim-treesitter-5ab25d8a1f759d6d0a825acc653f2d1c2679e0df.tar.bz2
nvim-treesitter-5ab25d8a1f759d6d0a825acc653f2d1c2679e0df.tar.lz
nvim-treesitter-5ab25d8a1f759d6d0a825acc653f2d1c2679e0df.tar.xz
nvim-treesitter-5ab25d8a1f759d6d0a825acc653f2d1c2679e0df.tar.zst
nvim-treesitter-5ab25d8a1f759d6d0a825acc653f2d1c2679e0df.zip
fix(python,starlark): update field match pattern
Diffstat (limited to 'queries/python')
-rw-r--r--queries/python/highlights.scm6
1 files changed, 3 insertions, 3 deletions
diff --git a/queries/python/highlights.scm b/queries/python/highlights.scm
index 30747b1fa..5496263f0 100644
--- a/queries/python/highlights.scm
+++ b/queries/python/highlights.scm
@@ -29,7 +29,7 @@
((attribute
attribute: (identifier) @field)
- (#lua-match? @field "^%u@!.*$"))
+ (#lua-match? @field "^.*%l.*$"))
((identifier) @type.builtin
(#any-of? @type.builtin
@@ -324,14 +324,14 @@
(expression_statement
(assignment
left: (identifier) @field))))
- (#lua-match? @field "^%u@!.*$"))
+ (#lua-match? @field "^%l.*$"))
((class_definition
body: (block
(expression_statement
(assignment
left: (_
(identifier) @field)))))
- (#lua-match? @field "^%u@!.*$"))
+ (#lua-match? @field "^%l.*$"))
((class_definition
(block