aboutsummaryrefslogtreecommitdiffstats
path: root/queries/python
diff options
context:
space:
mode:
authorAmaan Qureshi <amaanq12@gmail.com>2023-04-29 18:57:48 -0400
committerAmaan Qureshi <amaanq12@gmail.com>2023-04-29 19:38:30 -0400
commit9bfc966769f593cc55faea36e2c500ecb4304203 (patch)
treec03283dc516f96426eabc1ca6a0465a5609c5961 /queries/python
parentAdd Python else elif dedent (#4618) (diff)
downloadnvim-treesitter-9bfc966769f593cc55faea36e2c500ecb4304203.tar
nvim-treesitter-9bfc966769f593cc55faea36e2c500ecb4304203.tar.gz
nvim-treesitter-9bfc966769f593cc55faea36e2c500ecb4304203.tar.bz2
nvim-treesitter-9bfc966769f593cc55faea36e2c500ecb4304203.tar.lz
nvim-treesitter-9bfc966769f593cc55faea36e2c500ecb4304203.tar.xz
nvim-treesitter-9bfc966769f593cc55faea36e2c500ecb4304203.tar.zst
nvim-treesitter-9bfc966769f593cc55faea36e2c500ecb4304203.zip
fix(python): fields should not match uppercase-beginning names
Diffstat (limited to 'queries/python')
-rw-r--r--queries/python/highlights.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/queries/python/highlights.scm b/queries/python/highlights.scm
index 956b1d19c..c18b74867 100644
--- a/queries/python/highlights.scm
+++ b/queries/python/highlights.scm
@@ -29,7 +29,7 @@
((attribute
attribute: (identifier) @field)
- (#lua-match? @field "^.*%l.*$"))
+ (#lua-match? @field "^[%l_].*$"))
((assignment
left: (identifier) @type.definition