mirror of
https://github.com/sharkdp/bat.git
synced 2026-11-25 10:36:06 +00:00
bat's Rust syntax highlighting patch (assets/patches/Rust.sublime-syntax.patch) targets an older snapshot of sublimehq/Packages' Rust.sublime-syntax (pinned submodule commit 759d6eed) whose keyword.control.rust match only lists break|else|for|if|loop|match|while|continue. async and await aren't included, so both render as plain text instead of keywords. Add async|await to that same alternation, matching the style already used for the rest of the keyword list. Verified against the actual pinned submodule content (fetched directly rather than the current upstream HEAD, which has since restructured this section entirely) that the patch context at line 139 matches exactly and applies cleanly with `patch --strip=0`. Adds a regression test case (async fn with chained .await calls) and its expected highlighted output, generated to match bat's existing Monokai Extended color scheme (keyword.control.rust colored the same as the other control-flow keywords already in that list). Closes gh-1534.