aboutsummaryrefslogtreecommitdiffstats
path: root/tests/indent/rescript/basic.res
diff options
context:
space:
mode:
authorRiley Bruins <ribru17@hotmail.com>2024-07-27 08:34:30 -0700
committerGitHub <noreply@github.com>2024-07-27 17:34:30 +0200
commitf97e0de0053df1cb3b9f74b9b1239acced1b7d9a (patch)
tree99659d6656483a4b8704bb944a234cb62ef79115 /tests/indent/rescript/basic.res
parentfix(query): properly apply predicate injections (diff)
downloadnvim-treesitter-f97e0de0053df1cb3b9f74b9b1239acced1b7d9a.tar
nvim-treesitter-f97e0de0053df1cb3b9f74b9b1239acced1b7d9a.tar.gz
nvim-treesitter-f97e0de0053df1cb3b9f74b9b1239acced1b7d9a.tar.bz2
nvim-treesitter-f97e0de0053df1cb3b9f74b9b1239acced1b7d9a.tar.lz
nvim-treesitter-f97e0de0053df1cb3b9f74b9b1239acced1b7d9a.tar.xz
nvim-treesitter-f97e0de0053df1cb3b9f74b9b1239acced1b7d9a.tar.zst
nvim-treesitter-f97e0de0053df1cb3b9f74b9b1239acced1b7d9a.zip
feat: add rescript parser and queries (#6671)
Diffstat (limited to 'tests/indent/rescript/basic.res')
-rw-r--r--tests/indent/rescript/basic.res23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/indent/rescript/basic.res b/tests/indent/rescript/basic.res
new file mode 100644
index 000000000..c5138a7b3
--- /dev/null
+++ b/tests/indent/rescript/basic.res
@@ -0,0 +1,23 @@
+@genType
+type person = {
+ name: string,
+ age: int,
+}
+
+@genType
+type renderMe<'a> = React.component<{
+ "randomString": string,
+ "poly": 'a,
+}>
+
+@genType.import("./hookExample") @react.component
+external make: (
+ ~person: person,
+ ~children: React.element,
+ ~renderMe: renderMe<'a>,
+) => React.element = "makeRenamed"
+
+@genType.import("./hookExample")
+external foo: (~person: person) => string = "foo"
+
+let hi = 'a'