Skip to content

Add syntax highlighting for async await #65

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions examples/rescript-project/src/asyncAwait.res
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
let greetUser = async (userId) => {
let name = await getUserName(. userId)
"Hello " ++ name ++ "!"
}
1 change: 1 addition & 0 deletions syntax/rescript.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down