diff options
| author | Bruno BELANYI <bruno@belanyi.fr> | 2022-06-14 17:30:49 +0200 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2022-06-14 22:34:03 +0200 |
| commit | 6e3f888dc7e5ea78e121c9ee41d365f339957824 (patch) | |
| tree | 44f3c02804d98f3f2a7bf3916fb93cfee52ba878 /tests/query/highlights/tiger/identifiers.tig | |
| parent | feat(tiger): initial support (diff) | |
| download | nvim-treesitter-6e3f888dc7e5ea78e121c9ee41d365f339957824.tar nvim-treesitter-6e3f888dc7e5ea78e121c9ee41d365f339957824.tar.gz nvim-treesitter-6e3f888dc7e5ea78e121c9ee41d365f339957824.tar.bz2 nvim-treesitter-6e3f888dc7e5ea78e121c9ee41d365f339957824.tar.lz nvim-treesitter-6e3f888dc7e5ea78e121c9ee41d365f339957824.tar.xz nvim-treesitter-6e3f888dc7e5ea78e121c9ee41d365f339957824.tar.zst nvim-treesitter-6e3f888dc7e5ea78e121c9ee41d365f339957824.zip | |
test(tiger): import upstream tests
Diffstat (limited to 'tests/query/highlights/tiger/identifiers.tig')
| -rw-r--r-- | tests/query/highlights/tiger/identifiers.tig | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/query/highlights/tiger/identifiers.tig b/tests/query/highlights/tiger/identifiers.tig new file mode 100644 index 000000000..f177a5a5c --- /dev/null +++ b/tests/query/highlights/tiger/identifiers.tig @@ -0,0 +1,29 @@ +type int = int +/* ^ variable */ +/* ^ type.builtin */ + +type int_array = array of int +/* ^ type.builtin */ + +type record = {a: int, b: string} +/* ^ property */ +/* ^ type.builtin */ +/* ^ property */ +/* ^ type.builtin */ + +var record := record {a = 12, b = "27"} +/* ^ variable */ +/* ^ type */ +/* ^ property */ +/* ^ property */ + +var array := int_array[12] of 27; +/* ^ variable */ +/* ^ type */ + +primitive func(a: int, b: string) : array +/* ^ variable.parameter */ +/* ^ type.builtin */ +/* ^ variable.parameter */ +/* ^ type.builtin */ +/* ^ type */ |
