aboutsummaryrefslogtreecommitdiffstats
path: root/tests/query/highlights/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 /tests/query/highlights/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 'tests/query/highlights/python')
-rw-r--r--tests/query/highlights/python/fields.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/query/highlights/python/fields.py b/tests/query/highlights/python/fields.py
new file mode 100644
index 000000000..21b6251dc
--- /dev/null
+++ b/tests/query/highlights/python/fields.py
@@ -0,0 +1,10 @@
+class Fields:
+ def __init__(self, fields):
+ self.fields = fields
+# ^^^^^^ @field
+ self.__dunderfield__ = None
+# ^^^^^^^^^^^^^^^ @field
+ self._FunKyFielD = 0
+# ^^^^^^^^^^^ @field
+ self.NOT_A_FIELD = "IM NOT A FIELD"
+# ^^^^^^^^^^^ @constant