aboutsummaryrefslogtreecommitdiffstats
path: root/tests/query/highlights
diff options
context:
space:
mode:
authorAmaan Qureshi <amaanq12@gmail.com>2023-04-24 00:38:31 -0400
committerAmaan Qureshi <amaanq12@gmail.com>2023-04-25 03:04:05 -0400
commit87faf372eb517077cc600c4e653e4fb3252d02ac (patch)
tree7753d3ac7bc5e731d077bf9a1c4ae079f386a994 /tests/query/highlights
parentfeat(python,starlark): highlight type conversions as `@function.macro` (diff)
downloadnvim-treesitter-87faf372eb517077cc600c4e653e4fb3252d02ac.tar
nvim-treesitter-87faf372eb517077cc600c4e653e4fb3252d02ac.tar.gz
nvim-treesitter-87faf372eb517077cc600c4e653e4fb3252d02ac.tar.bz2
nvim-treesitter-87faf372eb517077cc600c4e653e4fb3252d02ac.tar.lz
nvim-treesitter-87faf372eb517077cc600c4e653e4fb3252d02ac.tar.xz
nvim-treesitter-87faf372eb517077cc600c4e653e4fb3252d02ac.tar.zst
nvim-treesitter-87faf372eb517077cc600c4e653e4fb3252d02ac.zip
fix(python,starlark): builtin types should come after types
Diffstat (limited to 'tests/query/highlights')
-rw-r--r--tests/query/highlights/python/fields.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/query/highlights/python/fields.py b/tests/query/highlights/python/fields.py
index 21b6251dc..fb36a6311 100644
--- a/tests/query/highlights/python/fields.py
+++ b/tests/query/highlights/python/fields.py
@@ -1,5 +1,7 @@
class Fields:
- def __init__(self, fields):
+ def __init__(self, fields: list[int]) -> None:
+# ^^^ @type.builtin
+# ^^^^ @constant.builtin
self.fields = fields
# ^^^^^^ @field
self.__dunderfield__ = None