aboutsummaryrefslogtreecommitdiffstats
path: root/queries/python/highlights.scm
diff options
context:
space:
mode:
authorAmaan Qureshi <amaanq12@gmail.com>2024-01-24 01:07:22 -0500
committerPhạm Huy Hoàng <hoangtun0810@gmail.com>2024-01-24 15:21:39 +0900
commit55562407b69c36c3a429c12bc1d6da231f700cfb (patch)
treecfdd5030434915f839016521e851863e94d1a8b1 /queries/python/highlights.scm
parentfix(devicetree): Adapt to upstream node changes (#5961) (diff)
downloadnvim-treesitter-55562407b69c36c3a429c12bc1d6da231f700cfb.tar
nvim-treesitter-55562407b69c36c3a429c12bc1d6da231f700cfb.tar.gz
nvim-treesitter-55562407b69c36c3a429c12bc1d6da231f700cfb.tar.bz2
nvim-treesitter-55562407b69c36c3a429c12bc1d6da231f700cfb.tar.lz
nvim-treesitter-55562407b69c36c3a429c12bc1d6da231f700cfb.tar.xz
nvim-treesitter-55562407b69c36c3a429c12bc1d6da231f700cfb.tar.zst
nvim-treesitter-55562407b69c36c3a429c12bc1d6da231f700cfb.zip
chore(python): update member lua pattern
Diffstat (limited to 'queries/python/highlights.scm')
-rw-r--r--queries/python/highlights.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/queries/python/highlights.scm b/queries/python/highlights.scm
index 764521c7b..329df4f14 100644
--- a/queries/python/highlights.scm
+++ b/queries/python/highlights.scm
@@ -387,7 +387,7 @@
(expression_statement
(assignment
left: (identifier) @variable.member))))
- (#lua-match? @variable.member "^%l.*$"))
+ (#lua-match? @variable.member "^[%l_].*$"))
((class_definition
body:
@@ -397,7 +397,7 @@
left:
(_
(identifier) @variable.member)))))
- (#lua-match? @variable.member "^%l.*$"))
+ (#lua-match? @variable.member "^[%l_].*$"))
((class_definition
(block