diff --git a/examples/rescript-project/src/asyncAwait.res b/examples/rescript-project/src/asyncAwait.res new file mode 100644 index 0000000..ba735d8 --- /dev/null +++ b/examples/rescript-project/src/asyncAwait.res @@ -0,0 +1,4 @@ +let greetUser = async (userId) => { + let name = await getUserName(. userId) + "Hello " ++ name ++ "!" +} diff --git a/syntax/rescript.vim b/syntax/rescript.vim index 2e0ab5c..0df542e 100644 --- a/syntax/rescript.vim +++ b/syntax/rescript.vim @@ -14,6 +14,7 @@ syntax keyword resKeyword if else switch when syntax keyword resKeyword and as open include module in constraint import export syntax keyword resKeyword for to downto while syntax keyword resKeyword try catch exception assert +syntax keyword resKeyword async await " Types syntax keyword resType bool int float char string unit