From 8a9471ca5c99e07731aecfee677abf0b6252e48b Mon Sep 17 00:00:00 2001 From: Tim Allen Date: Thu, 2 Aug 2018 15:16:25 +1000 Subject: [PATCH] rust.kak: Support Rust's raw-string syntax. According to the Rust language reference[1], a raw string starts with an 'r', zero or more '#' characters, and a '"', and doesn't close until a '"' is immediately followed by the matching number of '#' characters. [1]: https://doc.rust-lang.org/reference/tokens.html#raw-string-literals --- rc/base/rust.kak | 1 + 1 file changed, 1 insertion(+) diff --git a/rc/base/rust.kak b/rc/base/rust.kak index 48f5702d..c161f615 100644 --- a/rc/base/rust.kak +++ b/rc/base/rust.kak @@ -14,6 +14,7 @@ hook global BufCreate .*[.](rust|rs) %{ add-highlighter shared/rust regions add-highlighter shared/rust/code default-region group add-highlighter shared/rust/string region %{(?