kakoune: highlight leptos html macro

This commit is contained in:
Leonardo Eugênio 2023-05-29 12:47:20 -03:00
parent 3d207cb35a
commit 39cbe4e5e8

View file

@ -75,7 +75,7 @@ hook global WinSetOption filetype=rust %[
add-highlighter window/rust-custom regions add-highlighter window/rust-custom regions
require-module html require-module html
add-highlighter window/rust-custom/html region -recurse '\{' 'html!\s*\{\K' '(?=\})' ref html add-highlighter window/rust-custom/html region -recurse '\{' '(html|view)!\s*\{\K' '(?=\})' ref html
require-module sql require-module sql
add-highlighter window/rust-custom/sql region 'r#"\K--\s*sql' '"#' group add-highlighter window/rust-custom/sql region 'r#"\K--\s*sql' '"#' group