mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-07 22:10:01 -04:00
feat: add rescript parser and queries (#6671)
This commit is contained in:
parent
7cec6219c4
commit
f97e0de005
12 changed files with 748 additions and 0 deletions
23
tests/indent/rescript/basic.res
Normal file
23
tests/indent/rescript/basic.res
Normal file
|
|
@ -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'
|
||||
Loading…
Add table
Add a link
Reference in a new issue