Skip to content
Closed
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@

## Syntaxes

- Highlight Rust `async` and `await` as keywords, see #3849 (@coyaSONG)
- Add shebang-based detection for Tcl (`tclsh`, `wish`) and Expect (`expect`) scripts, see #3647 (@mvanhorn)
- Change the URL of Zig submodule from GitHub to Codeberg, see #3519 (@sorairolake)
- Don't color strings inside CSV files, to make it easier to tell which column they belong to, see #3521 (@keith-hall)
Expand Down
3 changes: 3 additions & 0 deletions assets/patches/Rust.sublime-syntax.patch
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ diff --git syntaxes/01_Packages/Rust/Rust.sublime-syntax syntaxes/01_Packages/Ru
index 3c354486..24727a4e 100644
--- syntaxes/01_Packages/Rust/Rust.sublime-syntax
+++ syntaxes/01_Packages/Rust/Rust.sublime-syntax
@@ -139 +139 @@ contexts:
- - match: \b(break|else|for|if|loop|match|while|continue)\b
+ - match: \b(async|await|break|else|for|if|loop|match|while|continue)\b
@@ -907,6 +907,8 @@ contexts:
- include: type-any-identifier
- match: ':'
Expand Down
4 changes: 4 additions & 0 deletions tests/syntax-tests/highlighted/Rust/output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,3 +159,7 @@
 }
 }
}

async fn foo() {
 async_foo().await.await.await;
}
4 changes: 4 additions & 0 deletions tests/syntax-tests/source/Rust/output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,3 +159,7 @@ impl Drop for OutputType {
}
}
}

async fn foo() {
async_foo().await.await.await;
}